Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-245

org.apache.tajo.algebra.FunctionExpr cannot be cast to org.apache.tajo.algebra.ColumnReferenceExpr

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2-incubating
    • None
    • None

    Description

      SELECT
                      col1, col2, col3, 
                      CASE
                        WHEN split_part(split_part(col4,'id=', 2), '&', 1) IS NOT NULL THEN ''
                        ELSE
                          CASE
                            WHEN col4 like '/%' THEN split_part(col4,'/', 2)
                            ELSE split_part(col4,'/', 1)
                          END
                      END AS col4, split_part(split_part(col4,'id=', 2), '&', 1) AS id
              FROM table1
              WHERE tmp='asdf';
      

      error msg

      org.apache.tajo.algebra.FunctionExpr cannot be cast to org.apache.tajo.algebra.ColumnReferenceExpr
      

      Attachments

        1. TAJO-245.patch
          8 kB
          Hyunsik Choi

        Activity

          People

            hyunsik Hyunsik Choi
            seungunchoe Seungun Choe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: