Skip to content

[Feature Request]: Support sql types with argument in CalciteUtils #24019

@Abacn

Description

@Abacn

What would you like to happen?

Currently, we omitted arguments when converting from/to SqlTypeName.VARBINARY, SqlTypeName.BINARY, SqlTypeName.VARCHAR, SqlTypeName.CHAR types in Calcite.Utils:

return dataTypeFactory.createSqlType(toSqlTypeName(fieldType));

To create sql types, we should use the overload method RelDataTypeFactory.createSqlType(SqlTypeName, int) which accepts a second int parameter to construct these types;
To create beam logical types, we should obtain the precision parameter of the Calcite type.

Issue Priority

Priority: 3

Issue Component

Component: dsl-sql

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions