Skip to content

Format of STRUCT is ambiguous #104

@apstndb

Description

@apstndb

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions