KurtYoung commented on a change in pull request #10096:
[FLINK-14623][table-api] Add computed column information into TableSc…
URL: https://github.com/apache/flink/pull/10096#discussion_r343012709
##########
File path:
flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java
##########
@@ -257,6 +267,43 @@ public void putIndexedFixedProperties(String key,
List<String> subKeys, List<Lis
}
}
+ /**
+ * Adds an indexed sequence of properties (with sub-properties) under a
common key.
+ * Different with {@link #putIndexedFixedProperties}, this method
supports the properties
+ * value to be null, which would be ignore. The sub-properties should
at least have
+ * one non-null value.
+ *
+ * <p>For example:
+ *
+ * <pre>
+ * schema.fields.0.type = INT, schema.fields.0.name = test
+ * schema.fields.1.type = LONG, schema.fields.1.name = test2
+ * schema.fields.2.type = LONG, schema.fields.1.expr = test + 1
Review comment:
The example seems wrong, should be
`schema.fields.2.type = LONG, schema.fields.2.name = test3,
schema.fields.2.expr = test + 1`?
----------------------------------------------------------------
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