Skip to content

Relation visitor fails to visit the SHOW COLUMNS statement in the latest commit of the main branch #1554

Closed
@goldmedal

Description

@goldmedal

Description

This problem can be reproduced by adding a test case at

fn test_sql() {
let tests = vec![
(

Consider a case

            (
                "SHOW COLUMNS FROM t1",
                vec![
                    "PRE: STATEMENT: SHOW COLUMNS FROM t1",
                    "PRE: RELATION: t1",
                    "POST: RELATION: t1",
                    "POST: STATEMENT: SHOW COLUMNS FROM t1",
                ],
            ),

The test case is passed in the previous release tag v0.52.0-rc3. However, in the latest commit of the main branch 525d178 , the test fails and the result is

     "PRE: STATEMENT: SHOW COLUMNS FROM t1",
     "POST: STATEMENT: SHOW COLUMNS FROM t1",

It may cause the upstream project, DataFusion, to fail to execute the SHOW COLUMNS FROM xxx SQL.
https://github.com/apache/datafusion/blob/18fc103a403ab0efe5245dd4352f3f3b93c2a4fe/datafusion/core/src/execution/session_state.rs#L540

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