public class CompoundIdentifierConverter
extends org.apache.calcite.sql.util.SqlShuttle
SqlVisitor that converts bracketed compound SqlIdentifier
to bracket-less compound SqlIdentifier (also known as DrillCompoundIdentifier)
to provide ease of use while querying complex types.
For example, this visitor converts a['b'][4]['c'] to a.b[4].c| Constructor and Description |
|---|
CompoundIdentifierConverter(boolean allowNoTableRefCompoundIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.sql.SqlNode |
visit(org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.sql.SqlNode |
visit(org.apache.calcite.sql.SqlIdentifier id) |
public CompoundIdentifierConverter(boolean allowNoTableRefCompoundIdentifier)
public org.apache.calcite.sql.SqlNode visit(org.apache.calcite.sql.SqlIdentifier id)
visit in interface org.apache.calcite.sql.util.SqlVisitor<org.apache.calcite.sql.SqlNode>visit in class org.apache.calcite.sql.util.SqlShuttlepublic org.apache.calcite.sql.SqlNode visit(org.apache.calcite.sql.SqlCall call)
visit in interface org.apache.calcite.sql.util.SqlVisitor<org.apache.calcite.sql.SqlNode>visit in class org.apache.calcite.sql.util.SqlShuttleCopyright © 2022 The Apache Software Foundation. All rights reserved.