Skip to content

Cloud Spanner raw strings and bytes are not parsed #656

Closed
@olavloite

Description

@olavloite

Actual Behavior

SELECT r'test' FROM foo is parsed as SELECT r [AS] 'test' FROM foo
SELECT b'test' FROM foo is parsed as SELECT b [AS] 'test' FROM foo
SELECT rb'test' FROM foo is parsed as SELECT rb [AS] 'test' FROM foo

Raw strings literals, byte literals and raw byte literals that are allowed in the Cloud Spanner dialect are not recognized by the parser.

Expected Behavior

SELECT r'test' FROM foo is should be parsed as SELECT R'test' FROM foo
SELECT b'test' FROM foo is should be parsed as SELECT B'test' FROM foo
SELECT rbtest' FROM foois should be parsed asSELECT RB'test' FROM foo`

Raw strings literals, byte literals and raw byte literals should be parsed as literal values.

Steps to Reproduce the Problem

  1. Execute SELECT r'test' FROM foo
  2. Verify that the parsed statement is a Select statement with one SelectItem having an alias called 'test'

Specifications

  • Version: 1.3
  • Platform:
  • Subsystem:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions