[ 
https://issues.apache.org/jira/browse/FLINK-19956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17227219#comment-17227219
 ] 

Timo Walther commented on FLINK-19956:
--------------------------------------

Thanks for the research [~jark]. I forgot that we fixed that "recently" for 
1.12. To summarize this issue a workaround for 1.11 is:
{code}
val column = "f0"
table.filter($"$column" === true)
{code}

In 1.11 the $() method was not available in Scala.

> $ does not work on variables without being qualified in Scala
> -------------------------------------------------------------
>
>                 Key: FLINK-19956
>                 URL: https://issues.apache.org/jira/browse/FLINK-19956
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>    Affects Versions: 1.11.2
>         Environment: MacOS
>            Reporter: Rex Remind
>            Priority: Minor
>
> This does not compile:
> {code:java}
> val columnName = "bool_column"
> table.filter($(column) === true)  {code}
>  
> {color:#333333}This does:{color}
> {code:java}
> val columnName = "bool_column"
> table.filter(Expressions.$(column) === true)    {code}
>  
> {color:#333333}There's nothing obviously documented to using the later.{color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to