databrickslabs / remorph

Cross-compiler and Data Reconciler into Databricks Lakehouse
Other
28 stars 16 forks source link

[FEATURE]: Support BANG operator in Snowflake CALL and implement it #741

Closed jimidle closed 1 month ago

jimidle commented 1 month ago

Is there an existing issue for this?

Category of feature request

Transpile

Problem statement

Snowflake allows calling of some specialized stored procedures to turn on and off certain features. These procedures have specialized naming conventions which separate the specific method from the grouped set, or refer to a named object such as a defined budget. The grammar does not currently support this, and in fact the CALL, while parsed, is not converted into IR.

Proposed Solution

It seems unlikely that Databricks SQL will have equivalents for most - if any - of these system specific calls, but we should support the syntax and be able to report that it is unsupported.

Additional Context

Example:

CALL account_root_budget!ACTIVATE()"

https://docs.snowflake.com/en/sql-reference/classes/budget/methods/activate