[
https://issues.apache.org/jira/browse/CALCITE-5986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17765821#comment-17765821
]
Julian Hyde commented on CALCITE-5986:
--------------------------------------
> > I think that the getFamily method should be deprecated.
> I suspect you mean use the Deprecated Java annotation. Some
> build tools are upset when you use deprecated methods, but I
> hope the build won't mind.
I mean mark it deprecated and remove all uses of it in the code, so that the
build system does not complain. If we think that {{getFamily}} is harmful,
let's stop using it.
> The typeFamily property of SqlTypeName is used inconsistently
> -------------------------------------------------------------
>
> Key: CALCITE-5986
> URL: https://issues.apache.org/jira/browse/CALCITE-5986
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.35.0
> Reporter: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
>
> In SqlTypeFamily we have this code:
> {code:java}
> private static final Map<Integer, SqlTypeFamily> JDBC_TYPE_TO_FAMILY =
> ...
> .put(Types.FLOAT, NUMERIC)
> .put(Types.REAL, NUMERIC)
> .put(Types.DOUBLE, NUMERIC)
> {code}
> But it looks to me like the type family should be APPROXIMATE_NUMERIC.
> This impacts the way RelToSqlConverter works, for instance.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)