whirlun opened a new pull request, #2272:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2272
Support databricks SQL JSON accessors
sample queries:
```
SELECT c1:price
FROM VALUES('{ "price": 5 }') AS T(c1);
SELECT c1:['price']::decimal(5,2)
FROM VALUES('{ "price": 5 }') AS T(c1);
SELECT c1:item[1].price::double
FROM VALUES('{ "item": [ { "model" : "basic", "price" : 6.12 },
{ "model" : "medium", "price" : 9.24 } ] }') AS
T(c1);
```
spec:
https://docs.databricks.com/en/sql/language-manual/functions/colonsign.html
the tests are written by Claude Code because it can write tests magnitudes
better than me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]