Skip to content

Support FLOAT32 and JSON types - #21

Merged
apstndb merged 5 commits into
mainfrom
support-types
Oct 14, 2024
Merged

apstndb merged 5 commits into
mainfrom
support-types

Conversation

@apstndb

@apstndb apstndb commented Oct 14, 2024

Copy link
Copy Markdown
Owner

This PR adds FLOAT32 support and JSON literals support.

$ ./execspansql ${SPANNER_DATABASE} --sql 'SELECT @j' --param="j:JSON '[{\"n\": 1}]'" --format=yaml --query-mode=NORMAL
metadata:
    rowType:
        fields:
            - type:
                code: JSON
    transaction:
        readTimestamp: "2024-10-14T10:56:25.913939Z"
    undeclaredParameters: {}
rows:
    - - '[{"n":1}]'

$ go run ./ ${SPANNER_DATABASE} --sql 'SELECT @f, @j' --param='f:FLOAT32' --param='j:JSON' --format=yaml --query-mode=PLAN --filter=.metadata.rowType
fields:
    - type:
        code: FLOAT32
    - type:
        code: JSON

@apstndb
apstndb merged commit ae46bed into main Oct 14, 2024
@apstndb
apstndb deleted the support-types branch October 14, 2024 11:00
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