Class DataTypeParser

java.lang.Object
dev.frostlake.executor.commands.DataTypeParser

public final class DataTypeParser extends Object
The one dataTypeName parse-tree → DataType mapping, shared by column / parameter definitions (ColumnDefinitionParser) and by expression casts (the expression AST builder), so a type spelled in a CREATE TABLE and the same type spelled in a CAST produce the same object.

It reads the STRUCTURED spellings — OBJECT(x VARCHAR, ...), ARRAY(INT), MAP(k, v) — into StructuredObjectType / StructuredArrayType / MapType rather than collapsing them onto the plain semi-structured singletons, because Snowflake treats structured and plain semi-structured types as DIFFERENT types.