julianhyde commented on code in PR #3837:
URL: https://github.com/apache/calcite/pull/3837#discussion_r1667091232
##########
core/src/main/java/org/apache/calcite/rel/metadata/BuiltInMetadata.java:
##########
@@ -837,7 +840,59 @@ interface Handler extends MetadataHandler<Memory> {
@Override default MetadataDef<Memory> getDef() {
return DEF;
}
+ }
+ }
+
+ /** Metadata about whether a column is a measure and, if so, what is the
+ * expression to evaluate that measure in the current context. */
+ public interface Measure extends Metadata {
+ MetadataDef<Measure> DEF =
+ MetadataDef.of(Measure.class, Measure.Handler.class,
+ BuiltInMethod.MEASURE_EXPAND.method,
+ BuiltInMethod.IS_MEASURE.method);
+
+ /** Returns whether a given column is a measure. */
Review Comment:
Added javadoc
--
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]