Skip to content

Conversation

@apstndb
Copy link
Collaborator

@apstndb apstndb commented Jan 30, 2026

This PR implements UUID type decoding.

Before

$ go run github.com/cloudspannerecosystem/spanner-cli@v0.11.1 -v -e 'SELECT NEW_UUID(), [NEW_UUID()]'
+-----------------------------------------------------+-------------+
|                                                     |             |
| UUID                                                | ARRAY<UUID> |
+-----------------------------------------------------+-------------+
| string_value:"58458950-7d28-4c6a-b459-1e760f9c5ab0" | []          |
+-----------------------------------------------------+-------------+
1 rows in set (0.22 msecs)
timestamp:            2026-01-31T04:19:32.71673+09:00
cpu time:             0.19 msecs
rows scanned:         0 rows
deleted rows scanned: 0 rows
optimizer version:    8
optimizer statistics: auto_20260129_12_27_00UTC

After

$ go run ./ -v -e 'SELECT NEW_UUID(), [NEW_UUID()]'
+--------------------------------------+----------------------------------------+
|                                      |                                        |
| UUID                                 | ARRAY<UUID>                            |
+--------------------------------------+----------------------------------------+
| 01e56cf0-5e9c-4795-867a-42d5a5718730 | [872d2b7c-0d27-4769-b749-d2a8ffb86be4] |
+--------------------------------------+----------------------------------------+
1 rows in set (2.54 msecs)
timestamp:            2026-01-31T04:19:18.414251+09:00
cpu time:             1.92 msecs
rows scanned:         0 rows
deleted rows scanned: 0 rows
optimizer version:    8
optimizer statistics: auto_20260129_12_27_00UTC

@apstndb apstndb force-pushed the feature/support-uuid-type branch 2 times, most recently from 54df539 to ad323cb Compare January 30, 2026 19:29
@apstndb apstndb force-pushed the feature/support-uuid-type branch from ad323cb to 32e6355 Compare January 31, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant