Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-1045

(bigint % int) should return bigint instead of double

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5.0, 0.6.0
    • 0.5.0
    • Query Processor
    • None
    • Reviewed
    • HIVE-1045. (bigint % int) should return bigint instead of double. (Paul Yang via zshao)

    Description

      This expression should return bigint instead of double.

      CREATE TABLE test (a BIGINT);
      EXPLAIN SELECT a % 3 FROM test;
      

      There must be something wrong in FunctionRegistry.getMethodInternal

      Attachments

        1. HIVE-1045.1.patch
          10 kB
          Paul Yang
        2. HIVE-1045.2.patch
          26 kB
          Paul Yang
        3. HIVE-1045.3.patch
          22 kB
          Paul Yang

        Issue Links

          Activity

            People

              pauly Paul Yang
              zshao Zheng Shao
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: