julianhyde commented on code in PR #3837:
URL: https://github.com/apache/calcite/pull/3837#discussion_r1667144856


##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidator.java:
##########
@@ -887,6 +889,25 @@ interface Config {
      */
     Config withIdentifierExpansion(boolean expand);
 
+    /**
+     * Returns whether to treat the query being validated as top-level.
+     *
+     * <p>The default, false, treats the query as top-level;
+     * a value of true treats it as a query inside another, as would be the 
case
+     * for a view or common table expression.
+     *
+     * <p>Possible behavior differences include ignoring the {@code ORDER BY}
+     * clause of an embedded query, or converting measure expressions of a
+     * non-embedded query into values. */
+    @Value.Default default boolean embedded() {

Review Comment:
   Agreed. I've changed it.



-- 
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