Replies: 4 comments
-
There's not very strong motivation to add this IMO. It's not part of the ANSI SQL spec. Is there some reason other than familiarity that would be useful (e.g. does it make generation of SQL statements easier etc.)? |
Beta Was this translation helpful? Give feedback.
-
That's fair. Another reason why it might be useful is that even though it's not part of ANSI SQL spec, Snowflake & PG makes use of this in their docs so the people who use them are already familiar with it. It will make it easier for those people to get used to Trino. |
Beta Was this translation helpful? Give feedback.
-
i'd love this to be an option, mostly because its shorted than cast syntax. |
Beta Was this translation helpful? Give feedback.
-
This is being worked on in #25259 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Postgresql and Snowflake have a nice synthetic sugar
val::type
that is similar toCAST(val as type)
but a more human-readable version of it. In addition to that, Snowflake hasjsoncol:path
which extracts thepath
from JSON (VARIANT type)I believe it would be useful to support for Trino to support the
::
syntax sugar syntax.Beta Was this translation helpful? Give feedback.
All reactions