You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/10/09 09:28:57 UTC

[GitHub] [flink] nizhikov commented on a change in pull request #17438: [FLINK-24389] [Table SQL / API] Fix NPE in CatalogTableImpl#getDescription

nizhikov commented on a change in pull request #17438:
URL: https://github.com/apache/flink/pull/17438#discussion_r725462366



##########
File path: flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/AbstractCatalogTable.java
##########
@@ -37,18 +39,18 @@
     // Properties of the table
     private final Map<String, String> options;
     // Comment of the table
-    private final String comment;
+    @Nullable private final String comment;
 
     public AbstractCatalogTable(
-            TableSchema tableSchema, Map<String, String> options, String comment) {
+            TableSchema tableSchema, Map<String, String> options, @Nullable String comment) {
         this(tableSchema, new ArrayList<>(), options, comment);
     }
 
     public AbstractCatalogTable(
             TableSchema tableSchema,
             List<String> partitionKeys,
             Map<String, String> options,
-            String comment) {
+            @Nullable String comment) {

Review comment:
       Thanks for the feedback.
   Patch reworked according to your proposal.




-- 
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-unsubscribe@flink.apache.org

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