Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Parsing colons and periods within backticks #51

Open
ConnorLeggettQC opened this issue Nov 21, 2023 · 1 comment
Open

Problem Parsing colons and periods within backticks #51

ConnorLeggettQC opened this issue Nov 21, 2023 · 1 comment

Comments

@ConnorLeggettQC
Copy link

Description

Backticks do not parse correctly when a colon (:) is placed after a period (.) within backticks (`) .

For example:
Screenshot 2023-11-21 at 9 36 40 AM
Screenshot 2023-11-21 at 9 37 20 AM

@stoeppke
Copy link

Kind of the same issue:

Code example

-- BigQuery
-- selected Language: sql-bigquery

WITH _start AS (SELECT '',), -- noqa: LT02, ST03

--> raw tables
    jobs AS (
        SELECT
            total_slot_ms,
            reservation_id,
            state,

        FROM `PROJECT_ID`.`region-REGION_NAME`.INFORMATION_SCHEMA.JOBS
        WHERE 1 = 1
            AND creation_time BETWEEN TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 DAY) AND CURRENT_TIMESTAMP()
    ),

_end AS (SELECT '',) -- noqa: LT02, ST03

SELECT *,
FROM jobs
LIMIT 10

Looks good when

the first `` block got no -

`PROJECT_ID`.`region-REGION_NAME`.INFORMATION_SCHEMA.JOBS
image

Looks bad when

the first `` block got a -

`PROJECT-ID`.`region-REGION_NAME`.INFORMATION_SCHEMA.JOBS
image

In addition

The second `` block dose not have a problematic impact, there - or _ both are fine

`PROJECT_ID`.`region-REGION_NAME`.INFORMATION_SCHEMA.JOBS
`PROJECT_ID`.`region_REGION_NAME`.INFORMATION_SCHEMA.JOBS

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

No branches or pull requests

2 participants