Skip to content

Conversation

@fivetran-kwoodbeck
Copy link
Collaborator

In checking the type annotation for TO_FILE, it was returning an OBJECT, so added in a new type for FILE and switched TRY_TO_FILE and TO_FILE over.

Documentation:
https://docs.snowflake.com/en/sql-reference/functions/to_file

@github-actions
Copy link
Contributor

SQLGlot Integration Test Results

Comparing:

  • this branch (sqlglot:feature/annotatetype-tofile, sqlglot version: feature/annotatetype-tofile)
  • baseline (main, sqlglot version: 28.3.1.dev7)

⚠️ Limited to dialects: snowflake

By Dialect

dialect main sqlglot:feature/annotatetype-tofile difference links
snowflake -> duckdb 49/1085 passed (4.5%) 49/1085 passed (4.5%) No change full result / delta
snowflake -> snowflake 88/1085 passed (8.1%) 88/1085 passed (8.1%) No change full result / delta

Overall

main: 2170 total, 137 passed (pass rate: 6.3%), sqlglot version: 28.3.1.dev7

sqlglot:feature/annotatetype-tofile: 2170 total, 137 passed (pass rate: 6.3%), sqlglot version: feature/annotatetype-tofile

Difference: No change

@georgesittas georgesittas merged commit 8a12611 into main Dec 15, 2025
9 checks passed
@georgesittas georgesittas deleted the feature/annotatetype-tofile branch December 15, 2025 13:55
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 this pull request may close these issues.

4 participants