[
https://issues.apache.org/jira/browse/CALCITE-5511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Will Noble updated CALCITE-5511:
--------------------------------
Description:
The type aliases covered in CALCITE-5346 may not be included in error messages
properly. There should be a setting to do type unmapping when rendering error
messages. Type unmapping will require access to a catalog.
For example, in
[SqlCastFunction.checkOperandTypes|https://github.com/apache/calcite/blob/d9a81b88ad561e7e4cedae93e805e0d7a53a7f1a/core/src/main/java/org/apache/calcite/sql/fun/SqlCastFunction.java#L161]
it throws an error based on the canonical name of the {{RelDataType}} which
may be confusing to end-users.
was:The type aliases covered in CALCITE-5346 may not be included in error
messages properly. Perhaps there should be a setting to do type unmapping when
rendering error messages.
> Substitute type names in error messages when type aliases are present
> ---------------------------------------------------------------------
>
> Key: CALCITE-5511
> URL: https://issues.apache.org/jira/browse/CALCITE-5511
> Project: Calcite
> Issue Type: Improvement
> Reporter: Will Noble
> Assignee: Oliver Lee
> Priority: Major
>
> The type aliases covered in CALCITE-5346 may not be included in error
> messages properly. There should be a setting to do type unmapping when
> rendering error messages. Type unmapping will require access to a catalog.
> For example, in
> [SqlCastFunction.checkOperandTypes|https://github.com/apache/calcite/blob/d9a81b88ad561e7e4cedae93e805e0d7a53a7f1a/core/src/main/java/org/apache/calcite/sql/fun/SqlCastFunction.java#L161]
> it throws an error based on the canonical name of the {{RelDataType}} which
> may be confusing to end-users.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)