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

ColumnReference should get higher priority than timeFunctionCall(CURRENT_DATE, CURRENT_TIMESTAMP)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.1.1, 2.1.2, 2.2.0
    • 2.2.1, 2.3.0
    • SQL
    • None

    Description

      In our cluster, there is a table "T" with column named as "current_date". When we select data from this column with SQL:

      select current_date from T
      

      We get the wrong answer, as the column is translated as CURRENT_DATE() function.

      Attachments

        Issue Links

          Activity

            People

              donnyzone Feng Zhu
              donnyzone Feng Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: