OmniSciDB  04ee39c94c
com.mapd.calcite.parser.MapDTypeSystem Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDTypeSystem:
+ Collaboration diagram for com.mapd.calcite.parser.MapDTypeSystem:

Public Member Functions

 MapDTypeSystem ()
 
int getMaxPrecision (SqlTypeName typeName)
 
boolean isSchemaCaseSensitive ()
 
boolean shouldConvertRaggedUnionTypesToVarying ()
 

Detailed Description

Definition at line 22 of file MapDTypeSystem.java.

Constructor & Destructor Documentation

◆ MapDTypeSystem()

com.mapd.calcite.parser.MapDTypeSystem.MapDTypeSystem ( )
inline

Definition at line 23 of file MapDTypeSystem.java.

23 {}

Member Function Documentation

◆ getMaxPrecision()

int com.mapd.calcite.parser.MapDTypeSystem.getMaxPrecision ( SqlTypeName  typeName)
inline

Definition at line 26 of file MapDTypeSystem.java.

26  {
27  // Nanoseconds for timestamps
28  return (typeName == SqlTypeName.TIMESTAMP) ? 9 : super.getMaxPrecision(typeName);
29  }

◆ isSchemaCaseSensitive()

boolean com.mapd.calcite.parser.MapDTypeSystem.isSchemaCaseSensitive ( )
inline

Definition at line 32 of file MapDTypeSystem.java.

32  {
33  return false;
34  }

◆ shouldConvertRaggedUnionTypesToVarying()

boolean com.mapd.calcite.parser.MapDTypeSystem.shouldConvertRaggedUnionTypesToVarying ( )
inline

Definition at line 37 of file MapDTypeSystem.java.

37  {
38  // this makes sure that CHAR literals are translated into VARCHAR literals
39  // mostly to avoid padding / trimming
40  return true;
41  }

The documentation for this class was generated from the following file: