You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "lightning-L (via GitHub)" <gi...@apache.org> on 2023/06/05 13:33:43 UTC

[GitHub] [kyuubi] lightning-L commented on issue #4803: [Bug] beeline -f ignore next sql line

lightning-L commented on issue #4803:
URL: https://github.com/apache/kyuubi/issues/4803#issuecomment-1576818456

   I could also reproduce it:
   ```
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10>
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10> select 1; -- first line
   . . . . . . . . . . . . . . . . . . . . . . .> select 2; -- second line
   . . . . . . . . . . . . . . . . . . . . . . .>
   . . . . . . . . . . . . . . . . . . . . . . .>
   . . . . . . . . . . . . . . . . . . . . . . .> +----+
   | 1  |
   +----+
   | 1  |
   +----+
   1 row selected (0.116 seconds)
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10> Closing: 0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10010/default;ssl=true;principal=kyuubi/kyuubi.hadoop.vip.ebay.com@PROD.EBAY.COM;hive.server2.proxy.user=b_mac?kyuubi.session.cluster=apollorno#spark.yarn.queue=hdlq-data-default
   ```
   
   If you just remove the comment, it works.
   ```
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10>
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10> select 1;
   +----+
   | 1  |
   +----+
   | 1  |
   +----+
   1 row selected (0.123 seconds)
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10> select 2;
   2023-06-05 06:27:52.125 INFO org.apache.kyuubi.operation.ExecuteStatement: Processing b_mac's query[41b2cd39-4b90-462a-a23a-1c31e8f0db38]: PENDING_STATE -> RUNNING_STATE, statement:
   select 2
   23/06/05 06:27:52 INFO ExecuteStatement: Processing b_mac's query[41b2cd39-4b90-462a-a23a-1c31e8f0db38]: PENDING_STATE -> RUNNING_STATE, statement:
   select 2
   ...
   2023-06-05 06:27:52.247 INFO org.apache.kyuubi.operation.ExecuteStatement: Processing b_mac's query[41b2cd39-4b90-462a-a23a-1c31e8f0db38]: RUNNING_STATE -> FINISHED_STATE, time taken: 0.106 seconds
   +----+
   | 2  |
   +----+
   | 2  |
   +----+
   1 row selected (0.231 seconds)
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10>
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10>
   0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10> Closing: 0: jdbc:hive2://kyuubi.hadoop.vip.ebay.com:10010/default;ssl=true;principal=kyuubi/kyuubi.hadoop.vip.ebay.com@PROD.EBAY.COM;hive.server2.proxy.user=b_mac?kyuubi.session.cluster=apollorno#spark.yarn.queue=hdlq-data-default
   ```
   
   So there is workround for this bug (do not use comment in the sql file).
   However, it still needs to be fixed.


-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org