You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Gian Merlino (Jira)" <ji...@apache.org> on 2023/01/14 08:29:00 UTC

[jira] [Created] (CALCITE-5478) Use highest input precision for datetimes in SqlTypeFactoryImpl.leastRestrictive

Gian Merlino created CALCITE-5478:
-------------------------------------

             Summary: Use highest input precision for datetimes in SqlTypeFactoryImpl.leastRestrictive
                 Key: CALCITE-5478
                 URL: https://issues.apache.org/jira/browse/CALCITE-5478
             Project: Calcite
          Issue Type: Improvement
          Components: core
            Reporter: Gian Merlino


For example: {{leastRestrictive(TIMESTAMP(3), TIMESTAMP(0))}} would be {{TIMESTAMP(3)}}, not {{TIMESTAMP(0)}}.

Some code exists to do this for other types, but not datetimes.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)