public class SqlUserDefinedTypeNameSpec extends SqlTypeNameSpec
Usually you should register the UDT into the CalciteSchema
first before referencing it in the sql statement.
| Constructor and Description |
|---|
SqlUserDefinedTypeNameSpec(SqlIdentifier typeName,
SqlParserPos pos)
Create a SqlUserDefinedTypeNameSpec instance.
|
SqlUserDefinedTypeNameSpec(String name,
SqlParserPos pos) |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
deriveType(SqlValidator validator)
Derive type from this SqlTypeNameSpec.
|
boolean |
equalsDeep(SqlTypeNameSpec spec,
Litmus litmus)
Returns whether this spec is structurally equivalent to another spec.
|
void |
unparse(SqlWriter writer,
int leftPrec,
int rightPrec)
Writes a SQL representation of this spec to a writer.
|
getParserPos, getTypeNamepublic SqlUserDefinedTypeNameSpec(SqlIdentifier typeName, SqlParserPos pos)
typeName - Type name as SQL identifierpos - The parser positionpublic SqlUserDefinedTypeNameSpec(String name, SqlParserPos pos)
public RelDataType deriveType(SqlValidator validator)
SqlTypeNameSpecderiveType in class SqlTypeNameSpecvalidator - The sql validatorRelDataType instance, throws exception if we could not
deduce the typepublic void unparse(SqlWriter writer, int leftPrec, int rightPrec)
SqlTypeNameSpecunparse in class SqlTypeNameSpecpublic boolean equalsDeep(SqlTypeNameSpec spec, Litmus litmus)
SqlTypeNameSpecequalsDeep in class SqlTypeNameSpecCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.