mdayakar commented on code in PR #4868:
URL: https://github.com/apache/hive/pull/4868#discussion_r1396028961
##########
hplsql/src/main/java/org/apache/hive/hplsql/Stmt.java:
##########
@@ -1152,9 +1161,26 @@ public void leaveLoop(String value) {
*/
public Integer update(HplsqlParser.Update_stmtContext ctx) {
trace(ctx, "UPDATE");
- String sql = exec.getFormattedText(ctx);
- trace(ctx, sql);
- QueryResult query = queryExecutor.executeQuery(sql, ctx);
+ HplsqlParser.Update_assignmentContext update_assignmentContext =
ctx.update_assignment();
+ StringBuilder sql = new StringBuilder(
+ exec.getFormattedText(ctx, ctx.start.getStartIndex(),
(update_assignmentContext.start.getStartIndex() - 1)));
+ boolean oldBuildSql = exec.buildSql;
+ exec.buildSql = true;
Review Comment:
Done
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]