mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 12:17:02 +00:00
SELECT JSON uses selector_factories to obtain the names of the fields to insert into the json object, and we want to drop selector_factories entirely. Switch instead to the ":metadata" mode of printing expressions, which does what we want. Unfortunately, the switch changes how system functions are converted into field names. A function such as unixtimestampof() is now rendered as "system.unixtimestampof()"; before it did not have the keyspace prefix. This is a compatiblity problem, albeit an obscure one. Since the new behavior matches Cassandra, and the odds of hitting this are very low, I think we can allow the change.