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

Using DISTINCT on a UDF (like CONCAT) is not supported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.1
    • 2.0.0
    • SQL
    • None

    Description

      The following query fails with:

      Java::JavaSql::SQLException: org.apache.spark.sql.AnalysisException: cannot resolve 'column_1' given input columns: [_c0]; line # pos ##
      

      Query:

      select
        distinct concat(column_1, ' : ', column_2)
      from
        table
      order by
        concat(column_1, ' : ', column_2);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dricard Dominic Ricard
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: