wuchong commented on a change in pull request #10536: [FLINK-15191][connectors
/ kafka]Fix can't create table source for Kafka if watermark or computed column
is defined.
URL: https://github.com/apache/flink/pull/10536#discussion_r358043811
##########
File path:
flink-connectors/flink-hbase/src/main/java/org/apache/flink/addons/hbase/HBaseUpsertTableSink.java
##########
@@ -54,7 +55,7 @@ public HBaseUpsertTableSink(
HBaseWriteOptions writeOptions) {
checkArgument(hbaseTableSchema.getRowKeyName().isPresent(),
"HBaseUpsertTableSink requires rowkey is set.");
this.hbaseTableSchema = hbaseTableSchema;
- this.tableSchema = hbaseTableSchema.convertsToTableSchema();
+ this.tableSchema =
TableSchemaUtils.getPhysicalTableSchema(hbaseTableSchema.convertsToTableSchema());
Review comment:
Actually, this is not needed, because
`hbaseTableSchema.convertsToTableSchema()` returns only physical schema.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services