Skip to content
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

snowflake column identifier for copy into / query data staged in files #519

Open
pawel-big-lebowski opened this issue Jun 9, 2022 · 0 comments

Comments

@pawel-big-lebowski
Copy link
Contributor

pawel-big-lebowski commented Jun 9, 2022

According to documentation, Snowflake allows:

  • query data staged in files with an identifier of a form [<alias>.]$<file_col_num>[.<element>]
  • copy into table with an column identifier containing $ character like select t.$1,t.$2,t.$3 from @~/datafile.csv.gz t;

Although the feature seems to be snowflake specific, it cannot be implemented within snowflake dialect. It's because tokens starting with $ character are tokenized into Token::Placeholder. That's why parser's change is required.

Initial OpenLineage project issue: OpenLineage/OpenLineage#814

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant