public class Utilities extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COL_NULL_ERROR |
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static PathSegment |
convertLiteral(org.apache.calcite.rex.RexLiteral literal)
Converts literal into path segment based on its type.
|
static BitControl.QueryContextInformation |
createQueryContextInfo(String defaultSchemaName,
String sessionId)
Create
BitControl.QueryContextInformation with given defaultSchemaName. |
static DrillTable |
getDrillTable(org.apache.calcite.plan.RelOptTable table)
Gets
DrillTable , either wrapped in RelOptTable, or DrillTranslatableTable. |
static String |
getDrillVersion()
Read the manifest file and get the Drill version number
|
static String |
getFileNameForQueryFragment(FragmentContext context,
String location,
String tag) |
static boolean |
isStarQuery(Collection<SchemaPath> projected)
Return true if list of schema path has star column.
|
static boolean |
isStarQuery(org.apache.calcite.rel.type.RelDataType projected)
Return true if the row type has star column.
|
static org.apache.calcite.rel.metadata.JaninoRelMetadataProvider |
registerJaninoRelMetadataProvider() |
public static final String COL_NULL_ERROR
public static String getFileNameForQueryFragment(FragmentContext context, String location, String tag)
public static BitControl.QueryContextInformation createQueryContextInfo(String defaultSchemaName, String sessionId)
BitControl.QueryContextInformation
with given defaultSchemaName. Rest of the members of the
QueryContextInformation is derived from the current state of the process.BitControl.QueryContextInformation
with given defaultSchemaName.public static String getDrillVersion()
public static boolean isStarQuery(Collection<SchemaPath> projected)
SchemaPath
s has star column.public static boolean isStarQuery(org.apache.calcite.rel.type.RelDataType projected)
public static DrillTable getDrillTable(org.apache.calcite.plan.RelOptTable table)
DrillTable
, either wrapped in RelOptTable, or DrillTranslatableTable.table
- table instancepublic static PathSegment convertLiteral(org.apache.calcite.rex.RexLiteral literal)
literal
- literalpublic static org.apache.calcite.rel.metadata.JaninoRelMetadataProvider registerJaninoRelMetadataProvider()
Copyright © 1970 The Apache Software Foundation. All rights reserved.