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

Fabian Hueske commented on FLINK-8930:
--------------------------------------

Hi,

I tried to reproduce the problem, but it's working fine for me.Try to add the 
following method to {{ScalarFunctionsValidationTest}}:
{code:java}
@Test
def testX(): Unit = {
  testTableApi(
    'f7.in('f14),
    "f7.in(f14)",
    "false"
  )
}{code}
Also after checking the code, you'll find that the Table API and SQL test run 
through the same validation steps. We do not execute the whole query, but just 
generate and run code for the expressions to test.

> TableApi validation test in ScalarFunctionsValidationTest doesn't work
> ----------------------------------------------------------------------
>
>                 Key: FLINK-8930
>                 URL: https://issues.apache.org/jira/browse/FLINK-8930
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>            Reporter: Wind
>            Priority: Major
>
> I'm wring a validation test for 
> [FLINK-6924|https://issues.apache.org/jira/browse/FLINK-6924] in 
> org.apache.flink.table.expressions.validation.ScalarFunctionsValidationTest. 
> However, I find that the table api is not truely executed in function 
> "testTableApi", which is different from "testSqlApi". So we can only test 
> exceptions which are thrown in "addTableApiTestExpr" like 
> "ValidationException" because it is thrown during "select" operation. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to