Modifier and Type | Class and Description |
---|---|
static class |
HiveTypeUtil.HivePrimitiveCategory
INTERVAL are not available in older versions.
|
Modifier and Type | Method and Description |
---|---|
static DataType |
toFlinkType(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector)
Convert a Hive ObjectInspector to a Flink data type.
|
static DataType |
toFlinkType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo hiveType)
Convert Hive data type to a Flink data type.
|
static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
toHiveTypeInfo(DataType dataType,
boolean checkPrecision)
Convert Flink DataType to Hive TypeInfo.
|
static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
toHiveTypeInfo(LogicalType logicalType,
boolean checkPrecision)
Convert Flink LogicalType to Hive TypeInfo.
|
public static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo toHiveTypeInfo(DataType dataType, boolean checkPrecision)
dataType
- a Flink DataTypecheckPrecision
- whether to fail the conversion if the precision of the DataType is not
supported by Hivepublic static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo toHiveTypeInfo(LogicalType logicalType, boolean checkPrecision)
logicalType
- a Flink LogicalTypecheckPrecision
- whether to fail the conversion if the precision of the LogicalType is
not supported by Hivepublic static DataType toFlinkType(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector)
inspector
- a Hive inspectorpublic static DataType toFlinkType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo hiveType)
hiveType
- a Hive data typeCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.