Currently, spanner-cli formats of STRUCT values as [...].
I think it is ambiguous with format of ARRAY values.
(We know nested ARRAY and top-level STRUCT is forbid so strictly ambiguous.)
$ spanner-cli -e 'SELECT ARRAY(SELECT AS STRUCT 1, 2)'
[[1, 2]]
$ spanner-cli -e 'SELECT SAMPLE_LOCK_REQUESTS FROM SPANNER_SYS.LOCK_STATS_TOP_HOUR' -t
...
[[tbl._exists, Exclusive], [tbl._exists, Exclusive], [tbl._exists, Exclusive], [tbl._exists, Exclusive]]
...
How about does STRUCT use (...) like native notation?
Currently, spanner-cli formats of
STRUCTvalues as[...].I think it is ambiguous with format of
ARRAYvalues.(We know nested
ARRAYand top-levelSTRUCTis forbid so strictly ambiguous.)How about does
STRUCTuse(...)like native notation?