public final class DeclaredTypeReader extends Object
DeclaredTypeNode tree. The grammars keep a nested type in
different members of TTypeName; this is the one place that knows them (plan section 4.2):
TTypeName.getColumnDefList() (Hive, Impala, Spark SQL, Databricks
STRUCT<..>, BigQuery, Athena, Presto/Trino ROW(..));TTypeName.getTypeOfList() (Hive listType_t, BigQuery, the Trino family) or
TTypeName.getElementType() (Databricks, Redshift);TTypeName.getKeyType() / TTypeName.getValueType() (Databricks) or
TTypeName.getPrimitiveTypeOfMap() / TTypeName.getTypeOfMap() (Hive, Impala, Redshift).ARRAY<T>'s T, a Presto MAP's key and value) reads as null: the container is
known, its parts are not.| Modifier and Type | Method and Description |
|---|---|
static DeclaredTypeNode |
read(TTypeName type)
The declared type of
type; null for a null type. |
public static DeclaredTypeNode read(TTypeName type)
type; null for a null type.