[
https://issues.apache.org/jira/browse/CALCITE-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated CALCITE-3533:
------------------------------------
Labels: pull-request-available (was: )
> Map non-jdbc data types to ANY in JdbcSchema
> --------------------------------------------
>
> Key: CALCITE-3533
> URL: https://issues.apache.org/jira/browse/CALCITE-3533
> Project: Calcite
> Issue Type: Bug
> Reporter: Vova Vysotskyi
> Priority: Major
> Labels: pull-request-available
>
> jdbc adapter fails with {{IllegalArgumentException}} when the table has
> non-jdbc data type.
> For example, MS SQL supports non-jdbc datetimeoffset data type, and
> {{JdbcSchema.getRelDataType()}} calls avatica's {{SqlType.valueOf(dataType)}}
> when constructing {{RelProtoDataType}} which throws
> {{IllegalArgumentException}} because this type wasn't mapped to {{SqlType}}.
> We should map such types to {{SqlTypeName.ANY}} type in {{JdbcSchema}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)