Aitozi commented on code in PR #21522:
URL: https://github.com/apache/flink/pull/21522#discussion_r1134269897


##########
flink-connectors/flink-connector-hive/src/test/java/org/apache/flink/connectors/hive/HiveLookupJoinITCase.java:
##########
@@ -205,10 +208,22 @@ public void testPartitionFetcherAndReader() throws 
Exception {
                 ObjectIdentifier.of(hiveCatalog.getName(), "default", 
"partition_table");
         CatalogTable catalogTable =
                 (CatalogTable) 
hiveCatalog.getTable(tableIdentifier.toObjectPath());
-        GenericRowData reuse = new 
GenericRowData(catalogTable.getSchema().getFieldCount());
+        GenericRowData reuse =
+                new 
GenericRowData(catalogTable.getUnresolvedSchema().getColumns().size());
+
         TypeSerializer<RowData> serializer =
                 InternalSerializers.create(
-                        
catalogTable.getSchema().toRowDataType().getLogicalType());
+                        DataTypes.ROW(

Review Comment:
   Replace with a util method, it looks better.



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to