arina-ielchiieva commented on a change in pull request #1365: DRILL-6575: Add
store.hive.conf.properties option to allow set Hive properties at session level
URL: https://github.com/apache/drill/pull/1365#discussion_r200814560
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlConverter.java
##########
@@ -187,12 +187,11 @@ public SqlNode parse(String sql) {
public SqlNode validate(final SqlNode parsedNode) {
try {
- SqlNode validatedNode = validator.validate(parsedNode);
- return validatedNode;
+ return validator.validate(parsedNode);
} catch (RuntimeException e) {
UserException.Builder builder = UserException
.validationError(e)
- .addContext("SQL Query", sql);
+ .addContext("SQL Query", (String) null);
Review comment:
Removed `addContext` since it does not make sense in this case.
----------------------------------------------------------------
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