You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2023/03/21 16:11:00 UTC

[jira] [Created] (HIVE-27162) Unify HiveUnixTimestampSqlOperator and HiveToUnixTimestampSqlOperator

Stamatis Zampetakis created HIVE-27162:
------------------------------------------

             Summary: Unify HiveUnixTimestampSqlOperator and HiveToUnixTimestampSqlOperator
                 Key: HIVE-27162
                 URL: https://issues.apache.org/jira/browse/HIVE-27162
             Project: Hive
          Issue Type: Task
          Components: CBO
            Reporter: Stamatis Zampetakis


The two classes below both represent the {{unix_timestamp}} operator and have identical implementations.
* https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveUnixTimestampSqlOperator.java
* https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveToUnixTimestampSqlOperator.java

Probably there is a way to use one or the other and not both; having two ways of representing the same thing can bring various problems in query planning and it also leads to code duplication.



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