TobikoData / sqlmesh

Efficient data transformation and modeling framework that is backwards compatible with dbt.
https://sqlmesh.com
Apache License 2.0
1.82k stars 160 forks source link

Feat: allow formatter to use CAST over :: syntax #3173

Closed georgesittas closed 1 month ago

georgesittas commented 1 month ago

Allows users to change the formatter so that it always produces the CAST(foo AS type) syntax over ::. This may come in handy for users that want to easily copy-paste their model queries without having to switch back the :: manually.

Context: https://tobiko-data.slack.com/archives/C07HJH22U9Z/p1727216482891999