@Internal public class CatalogTableSchemaResolver extends Object
CatalogTableSchemaResolver
is used to derive correct result type of computed column,
because the date type of computed column from catalog table is not trusted.
Such as `proctime()` function, its type in given TableSchema is Timestamp(3), but its correct type is Timestamp(3) *PROCTIME*.
Constructor and Description |
---|
CatalogTableSchemaResolver(Parser parser,
boolean isStreamingMode) |
Modifier and Type | Method and Description |
---|---|
TableSchema |
resolve(TableSchema tableSchema)
Resolve the computed column's type for the given schema.
|
public CatalogTableSchemaResolver(Parser parser, boolean isStreamingMode)
public TableSchema resolve(TableSchema tableSchema)
tableSchema
- Table schema to derive table field names and data typesCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.