[jira] [Commented] (FLINK-16264) SQLClientKafkaITCase fails with: Could not map the schema field 'rowtime' to a field from source.
[ https://issues.apache.org/jira/browse/FLINK-16264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17044397#comment-17044397 ] Jingsong Lee commented on FLINK-16264: -- Merged master: dd288c958861105b0ffc0966a8d32c1188342649 We can wait for next e2e test to verify the fixing. > SQLClientKafkaITCase fails with: Could not map the schema field 'rowtime' to > a field from source. > - > > Key: FLINK-16264 > URL: https://issues.apache.org/jira/browse/FLINK-16264 > Project: Flink > Issue Type: Bug > Components: Table SQL / Client, Tests >Affects Versions: 1.11.0 >Reporter: Robert Metzger >Assignee: Jingsong Lee >Priority: Major > Labels: pull-request-available, test-stability > Time Spent: 20m > Remaining Estimate: 0h > > https://travis-ci.org/apache/flink/jobs/654409366 > {code} > 18:42:33.227 [INFO] Running > org.apache.flink.tests.util.kafka.SQLClientKafkaITCase > 18:44:08.035 [ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time > elapsed: 94.798 s <<< FAILURE! - in > org.apache.flink.tests.util.kafka.SQLClientKafkaITCase > 18:44:08.041 [ERROR] testKafka[0: kafka-version:0.10 > kafka-sql-version:.*kafka-0.10.jar](org.apache.flink.tests.util.kafka.SQLClientKafkaITCase) > Time elapsed: 32.305 s <<< ERROR! > java.io.IOException: > Process execution failed due error. Error output:Exception in thread "main" > org.apache.flink.table.client.SqlClientException: Unexpected exception. This > is a bug. Please consider filing an issue. > at org.apache.flink.table.client.SqlClient.main(SqlClient.java:190) > Caused by: org.apache.flink.table.client.gateway.SqlExecutionException: Could > not create execution context. > at > org.apache.flink.table.client.gateway.local.ExecutionContext$Builder.build(ExecutionContext.java:779) > at > org.apache.flink.table.client.gateway.local.LocalExecutor.openSession(LocalExecutor.java:228) > at org.apache.flink.table.client.SqlClient.start(SqlClient.java:98) > at org.apache.flink.table.client.SqlClient.main(SqlClient.java:178) > Caused by: org.apache.flink.table.api.ValidationException: Could not map the > schema field 'rowtime' to a field from source. Please specify the source > field from which it can be derived. > at > org.apache.flink.table.descriptors.SchemaValidator.deriveFieldMapping(SchemaValidator.java:302) > at > org.apache.flink.streaming.connectors.kafka.KafkaTableSourceSinkFactoryBase.createStreamTableSource(KafkaTableSourceSinkFactoryBase.java:170) > at > org.apache.flink.table.factories.StreamTableSourceFactory.createTableSource(StreamTableSourceFactory.java:55) > at > org.apache.flink.table.factories.TableSourceFactory.createTableSource(TableSourceFactory.java:63) > at > org.apache.flink.table.factories.TableSourceFactory.createTableSource(TableSourceFactory.java:74) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.createTableSource(ExecutionContext.java:384) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.lambda$initializeCatalogs$6(ExecutionContext.java:585) > at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.initializeCatalogs(ExecutionContext.java:583) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.initializeTableEnvironment(ExecutionContext.java:520) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.(ExecutionContext.java:165) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.(ExecutionContext.java:122) > at > org.apache.flink.table.client.gateway.local.ExecutionContext$Builder.build(ExecutionContext.java:768) > ... 3 more > at > org.apache.flink.tests.util.kafka.SQLClientKafkaITCase.insertIntoAvroTable(SQLClientKafkaITCase.java:175) > at > org.apache.flink.tests.util.kafka.SQLClientKafkaITCase.testKafka(SQLClientKafkaITCase.java:148) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (FLINK-16264) SQLClientKafkaITCase fails with: Could not map the schema field 'rowtime' to a field from source.
[ https://issues.apache.org/jira/browse/FLINK-16264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17044071#comment-17044071 ] Jingsong Lee commented on FLINK-16264: -- Thanks [~rmetzger] for reporting, it is introduced in FLINK-15912 , I will fix it and add related test. > SQLClientKafkaITCase fails with: Could not map the schema field 'rowtime' to > a field from source. > - > > Key: FLINK-16264 > URL: https://issues.apache.org/jira/browse/FLINK-16264 > Project: Flink > Issue Type: Bug > Components: Table SQL / Client, Tests >Affects Versions: 1.11.0 >Reporter: Robert Metzger >Priority: Major > Labels: test-stability > > https://travis-ci.org/apache/flink/jobs/654409366 > {code} > 18:42:33.227 [INFO] Running > org.apache.flink.tests.util.kafka.SQLClientKafkaITCase > 18:44:08.035 [ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time > elapsed: 94.798 s <<< FAILURE! - in > org.apache.flink.tests.util.kafka.SQLClientKafkaITCase > 18:44:08.041 [ERROR] testKafka[0: kafka-version:0.10 > kafka-sql-version:.*kafka-0.10.jar](org.apache.flink.tests.util.kafka.SQLClientKafkaITCase) > Time elapsed: 32.305 s <<< ERROR! > java.io.IOException: > Process execution failed due error. Error output:Exception in thread "main" > org.apache.flink.table.client.SqlClientException: Unexpected exception. This > is a bug. Please consider filing an issue. > at org.apache.flink.table.client.SqlClient.main(SqlClient.java:190) > Caused by: org.apache.flink.table.client.gateway.SqlExecutionException: Could > not create execution context. > at > org.apache.flink.table.client.gateway.local.ExecutionContext$Builder.build(ExecutionContext.java:779) > at > org.apache.flink.table.client.gateway.local.LocalExecutor.openSession(LocalExecutor.java:228) > at org.apache.flink.table.client.SqlClient.start(SqlClient.java:98) > at org.apache.flink.table.client.SqlClient.main(SqlClient.java:178) > Caused by: org.apache.flink.table.api.ValidationException: Could not map the > schema field 'rowtime' to a field from source. Please specify the source > field from which it can be derived. > at > org.apache.flink.table.descriptors.SchemaValidator.deriveFieldMapping(SchemaValidator.java:302) > at > org.apache.flink.streaming.connectors.kafka.KafkaTableSourceSinkFactoryBase.createStreamTableSource(KafkaTableSourceSinkFactoryBase.java:170) > at > org.apache.flink.table.factories.StreamTableSourceFactory.createTableSource(StreamTableSourceFactory.java:55) > at > org.apache.flink.table.factories.TableSourceFactory.createTableSource(TableSourceFactory.java:63) > at > org.apache.flink.table.factories.TableSourceFactory.createTableSource(TableSourceFactory.java:74) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.createTableSource(ExecutionContext.java:384) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.lambda$initializeCatalogs$6(ExecutionContext.java:585) > at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.initializeCatalogs(ExecutionContext.java:583) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.initializeTableEnvironment(ExecutionContext.java:520) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.(ExecutionContext.java:165) > at > org.apache.flink.table.client.gateway.local.ExecutionContext.(ExecutionContext.java:122) > at > org.apache.flink.table.client.gateway.local.ExecutionContext$Builder.build(ExecutionContext.java:768) > ... 3 more > at > org.apache.flink.tests.util.kafka.SQLClientKafkaITCase.insertIntoAvroTable(SQLClientKafkaITCase.java:175) > at > org.apache.flink.tests.util.kafka.SQLClientKafkaITCase.testKafka(SQLClientKafkaITCase.java:148) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)