You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6352fa6
Browse filesBrowse the repository at this point in the historyBrowse files
* feat: Python table functions on Snowflake
Add @table_fn(...) for whole-partition Python table functions. Each call
receives one partition as a data frame, polars by default or pandas from a
pd.DataFrame annotation or the [defaults] function_dataframe setting, and
returns a data frame matching its declared returns columns.
Calls must use OVER (PARTITION BY ...), checked at compile time in models,
function bodies and SQL tests. Polars functions reject fractional NUMBER
arguments. Snowflake deploys a vectorized end_partition handler that checks
the returned columns.
* fix: harden Python table function partition parsing and handler
Comments before OVER and inside its clause no longer hide the partition.
The generated Snowflake handler prefixes its locals so any entry point name
works, and names repeated returned columns. DEC counts as a fixed-point
type for polars arguments. The docs state how the frame annotation is read.
* fix: skip dialect line comments before a table function's OVER clause
The partition check, analysis, SQL-test markers and Snowflake rendering
now skip each dialect's own line comments, such as Snowflake's //, before
OVER and inside it.
* refactor: share the temporary function copy between Snowflake and Databricks
* test: type the stubbed Snowflake module in the table function handler test
* test: list function_dataframe in the unknown default key golden
0 commit comments