Package com.twilio.kudu.sql
Class SqlUtil
java.lang.Object
com.twilio.kudu.sql.SqlUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static org.apache.kudu.Type
getKuduDataType
(SqlDataTypeNode dataType) Translates JDBC sql types to Kudu data typesstatic Object
translateDefaultValue
(org.apache.kudu.Type kuduType, Object defaultValue) Translates the default object value type to the data type that is expected by Kudu
-
Constructor Details
-
SqlUtil
public SqlUtil()
-
-
Method Details
-
getExplainPlan
- Throws:
SQLException
-
getResult
- Throws:
SQLException
-
getKuduDataType
Translates JDBC sql types to Kudu data types- Parameters:
dataType
- the datatype from Calcite- Returns:
- Kudu type that represents this Calcite type
-
translateDefaultValue
Translates the default object value type to the data type that is expected by Kudu- Parameters:
kuduType
- Kudu type in the tabledefaultValue
- default value taken fromSchema
- Returns:
- Translated defaultValue into java type Calcite expects
-