You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "Hyunsik Choi (JIRA)" <ji...@apache.org> on 2013/10/13 16:50:41 UTC

[jira] [Resolved] (TAJO-245) org.apache.tajo.algebra.FunctionExpr cannot be cast to org.apache.tajo.algebra.ColumnReferenceExpr

     [ https://issues.apache.org/jira/browse/TAJO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyunsik Choi resolved TAJO-245.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.2-incubating

I've just committed it. Thank you for your review!

> org.apache.tajo.algebra.FunctionExpr cannot be cast to org.apache.tajo.algebra.ColumnReferenceExpr
> --------------------------------------------------------------------------------------------------
>
>                 Key: TAJO-245
>                 URL: https://issues.apache.org/jira/browse/TAJO-245
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Seungun Choe
>            Assignee: Hyunsik Choi
>             Fix For: 0.2-incubating
>
>         Attachments: TAJO-245.patch
>
>
> {code}
> 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';
> {code}
> error msg
> {code}
> org.apache.tajo.algebra.FunctionExpr cannot be cast to org.apache.tajo.algebra.ColumnReferenceExpr
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)