olivrlee commented on code in PR #3421:
URL: https://github.com/apache/calcite/pull/3421#discussion_r1326687827
##########
core/src/main/java/org/apache/calcite/schema/Table.java:
##########
@@ -82,4 +85,20 @@ public interface Table {
*/
boolean rolledUpColumnValidInsideAgg(String column, SqlCall call,
@Nullable SqlNode parent, @Nullable CalciteConnectionConfig config);
+
+ /**
+ * Overload to provide additional table metadata if available.
+ */
+ default Map<String, Object> getTableMetadata() {
+ Map<String, Object> map = new HashMap<>();
+ return map;
+ }
+
+ /**
+ * Overload to provide additional column metadata if available.
+ */
+ default Map<String, Map<String, Object>> getColumnMetadata() {
Review Comment:
Yeah I like the factory approach, thanks for the review and suggestion.
I pushed a commit with the rough idea but there are still some tests to
update/ and I need to fix the plugin retrieval, so it's not ready for re-review
yet.
--
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]