by mastax · 3y ago · 0 comments
SELECT t.j.foo.bar[2], ... FROM tbl t ...
I'm going to miss having this for years, probably. SELECT t->'j'->'foo'->'bar'->2, ... FROM tbl t ...
I think SQLite now also supports this syntax.After all if that’s your benchmark every database with a TEXT type already has T081.
The syntax is different, but close.
SQL 2023: SELECT a.key
PostgreSQL 9.3: SELECT a->'key'
PostgreSQL 14: SELECT a['key']
Don't get me wrong - I love the feature and use it a lot, but I find the syntax awkward and honestly just... strange (though I've not researched it and have no idea of the reasoning behind it).
Will postgres adopt the SQL standard for JSON "simplified accessor" syntax? Has there been any statements or communications from the development team?
t.j:foo.bar
Hopefully all the different dialects can adopt this syntax.https://docs.databricks.com/optimizations/semi-structured.ht...