XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      PostgreSQL, Teradata, SQL Server, DB2 and Presto perform integral division with the / operator.
      But Oracle, Vertica, Hive, MySQL and MariaDB perform fractional division with the / operator.

      We need add a flag(spark.sql.function.preferIntegralDivision) to control whether to use integral division with the / operator.

       

      Attachments

        Issue Links

          Activity

            People

              yumwang Yuming Wang
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: