snuyanzin commented on code in PR #41:
URL: 
https://github.com/apache/flink-connector-hive/pull/41#discussion_r3312646119


##########
flink-connector-hive/src/main/java/org/apache/flink/table/planner/delegation/hive/copy/HiveParserSemanticAnalyzer.java:
##########
@@ -662,11 +662,15 @@ private HiveParserASTNode 
genValuesTempTable(HiveParserASTNode originalFrom, Hiv
             ResolvedSchema resolvedSchema = 
ResolvedSchema.physical(fieldsName, fieldsDataType);
             ResolvedCatalogTable tempTable =
                     new ResolvedCatalogTable(
-                            CatalogTable.of(
-                                    
Schema.newBuilder().fromResolvedSchema(resolvedSchema).build(),
-                                    "values temp table",
-                                    new ArrayList<>(),
-                                    Collections.emptyMap()),
+                            CatalogTable.newBuilder()
+                                    .schema(
+                                            Schema.newBuilder()
+                                                    
.fromResolvedSchema(resolvedSchema)
+                                                    .build())
+                                    .comment("values temp table")
+                                    .partitionKeys(new ArrayList<>())
+                                    .options(Collections.emptyMap())

Review Comment:
   ```suggestion
                                       .options(Map.of())
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to