You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by "CharlieYan24 (via GitHub)" <gi...@apache.org> on 2023/02/12 13:46:14 UTC

[GitHub] [linkis] CharlieYan24 commented on pull request #3906: Fix the Txn list invalidation caused by multiple compilations under the transaction table query

CharlieYan24 commented on PR #3906:
URL: https://github.com/apache/linkis/pull/3906#issuecomment-1427037829

   > 6 checks passed
   
   
   
   ```
     private def executeHQL(realCode: String, driver: HiveDriverProxy): ExecuteResponse = {
       var needRetry: Boolean = true
       var tryCount: Int = 0
       var hasResult: Boolean = false
       var rows: Int = 0
       var columnCount: Int = 0
       while (needRetry) {
         needRetry = false
         driver.setTryCount(tryCount + 1)
         val startTime = System.currentTimeMillis()
         try {
           Utils.tryCatch {
             val queryPlan = driver.getPlan
    ...
   ```
   The above code is in branch : dev-1.3.2 ,because we skip driver.compile() step , driver.getPlan method will throw NPE , any suggest in fixing NPE ?
   
   ![image](https://user-images.githubusercontent.com/16526279/218314596-8da650d9-800a-4f9e-a3fb-44c9a789a605.png)


-- 
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@linkis.apache.org

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


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