Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-25457

IntegralDivide (div) should not always return long

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.0.0
    • None
    • SQL
    • None

    Description

      The operation div returns always long. This came from Hive's behavior, which is different to the one of most of other DBMS (eg. MySQL, Postgres) which return as a datatype the same of the operands.

      This JIRA tracks changing our return type and allowing the users to re-enable the old behavior using spark.sql.legacy.integralDivide.returnBigint.

      I'll submit a PR for this soon.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mgaido Marco Gaido
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: