Skip to content

Registering a record batch with the name json_table causes ParserError #9122

Open
@dadepo

Description

@dadepo

Describe the bug

Registering a record batch under the name json_table leads to a ParserError.

To Reproduce

You can find this repo https://github.com/dadepo/df-repro with code that can be used to reproduce the problem.

Running with the record batch registered with json_table will fail while the one registered with json_values_table runs successfully.

Expected behavior

I believe it should be possible to use json_table as an alias for a record batch.

Additional context

The issue is probably connected with this PR to add mysql's JSON_TABLE to sqlparser apache/datafusion-sqlparser-rs#1019

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwaiting-on-upstreamPR is waiting on an upstream dependency to be updated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions