8000 `json_deserialize_sql` is not quoting columns in `JOIN USING ()` clause · Issue #17838 · duckdb/duckdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
json_deserialize_sql is not quoting columns in JOIN USING () clause #17838
Closed
@akoshchiy

Description

@akoshchiy

What happens?

Seems thatjson_deserialize_sql skips the quotes on columns in JOIN USING () clause.

To Reproduce

SELECT json_deserialize_sql(json_serialize_sql('SELECT * FROM t1 JOIN t2 USING("$id")'));

Will produce

┌───────────────────────────────────────────────────────────────────────────────────┐
│ json_deserialize_sql(json_serialize_sql('SELECT * FROM t1 JOIN t2 USING("$id")')) │
│                                      varchar                                      │
├───────────────────────────────────────────────────────────────────────────────────┤
│ SELECT * FROM t1 INNER JOIN t2 USING ($id)                                        │
└───────────────────────────────────────────────────────────────────────────────────┘

OS:

MacOS 15.5

DuckDB Version:

1.3.0

DuckDB Client:

CLI

Hardware:

No response

Full Name:

Andrey Koshchiy

Affiliation:

MY.GAMES

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a source build

Did you include all relevant data sets for reproducing the issue?

No - Other reason (please specify in the issue body)

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR submittedA pull request was submitted to fix the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0