This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
Allowing magic functions to be used in functions imported from other scripts #334
Labels
feature request
New feature or request
Context
Currently, when we are using magic functions (i.e.
source()
andwrite_to_source()
) we have to use them in the same script that fal is being told to run. If you use them inside a custom function and try to use those functions in another script, even though you add the paths for both of the scripts in the schema, it fails.Is your feature request related to a problem? Please describe.
When you have a big fal+dbt project, you have multiple scripts. These scripts often have the same repeated uses of the magic functions which can be made into functions and stored in another script. The scripts then can just import the necessary functions, adding to better code readability.
Describe the solution you'd like
An ability to import functions from other scripts that use magic functions. The scripts housing the functions can be stored in a
utils
dir insidefal_scripts
. The path of the scripts can be added to the fal scripts section in the schema for fal to recognise.The text was updated successfully, but these errors were encountered: