julianhyde commented on a change in pull request #1031: CALCITE-2742: Update 
RexImpTable to use DataContext to retrieve USER and SYSTEM_USER
URL: https://github.com/apache/calcite/pull/1031#discussion_r260953414
 
 

 ##########
 File path: core/src/test/java/org/apache/calcite/rex/RexExecutorTest.java
 ##########
 @@ -175,6 +177,58 @@ private void checkConstant(final Object operand,
     });
   }
 
+  @Test public void testUserFromContext() throws Exception {
+    testContextLiteral(SqlStdOperatorTable.USER,
+                       DataContext.Variable.USER, "happyCalciteUser");
+  }
 
 Review comment:
   coding style is to indent arguments 4 spaces, not to line up with '('.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

Reply via email to