-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for loading data from stages #35
Comments
Hi @tharwan this might be possible ... could you share example SQL statements you'd like support for, both creating the stage and loading from it? |
Loading from a stage looks something like this: COPY INTO my_table
FROM @my_stage/my_file
FILE_FORMAT = (FIELD_DELIMITER = ';') Creating a stage is not so relevant in our case but looks like this: CREATE STAGE my_ext_stage
URL='azure://myaccount.blob.core.windows.net/load/files/'
STORAGE_INTEGRATION = myint; maybe related: tobymao/sqlglot#2463 |
Thanks! From the above I gather you want support for CSV files. I think creating the stage would be needed for fakesnow to know where to find the files to load. |
another option could be to just look locally for a file and ignore the @my_stage part. e.g. COPY INTO my_table
FROM @my_stage/my_file
FILE_FORMAT = (FIELD_DELIMITER = ';') would translate to COPY my_table
FROM my_file
(FORMAT CSV, DELIMITER ';'); |
Hi,
Would it be possible to support loading of data from a stage? (https://docs.snowflake.com/en/user-guide/data-load-considerations-load)
I am not sure from the docs if this would be even inside the scope of this project.
However it would help us a lot to test our complete ETL workflow.
The text was updated successfully, but these errors were encountered: