You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "woosuk.ro (Jira)" <ji...@apache.org> on 2025/12/30 04:27:00 UTC

[jira] [Updated] (IMPALA-14551) Query hangs when selecting an expression that contains Unicode Letters

     [ https://issues.apache.org/jira/browse/IMPALA-14551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

woosuk.ro updated IMPALA-14551:
-------------------------------
    Description: 
* Summary
 ** When a complex expression that contains Unicode Letters is selected without an alias, an error during alias mapping causes the query to hang before the planning phase. CANCEL QUERY is ineffective.
 * Environment
 ** Impala 4.4.0
 ** Apache Hive 3.1.3 (without HIVE-19064)
 ** ANTLR runtime 3.3
 * Steps to Reproduce
 ** In the SELECT list, use an expression containing Unicode Letters without an alias.
 ** Example : `select 누적합 - lag (누적합) over (partition by day order by day) from base`
 * Actual Behavior
 ** During alias mapping, invoking HiveLexer triggers repeated retries without consuming input, and the query hangs. Threads remain RUNNABLE and cannot be canceled
 * Call Stack (Thread RUNNABLE state)

{code:java}
"Thread-3474785" Id=3484730 RUNNABLE
  ... 
	at org.antlr.runtime.RecognitionException.<init>(RecognitionException.java:102)
	at org.antlr.runtime.FailedPredicateException.<init>(FailedPredicateException.java:46)
	at org.apache.hadoop.hive.ql.parse.HiveLexer.mIdentifier(HiveLexer.java:9623)
	at org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer.java:12524)
	at org.antlr.runtime.Lexer.nextToken(Lexer.java:89)
	at org.apache.impala.analysis.ToSqlUtils.hiveNeedsQuotes(ToSqlUtils.java:181)
   ...  
	at org.apache.impala.service.JniFrontend.createExecRequest(JniFrontend.java:175) {code}

  was:
* Summary
 ** When a complex expression that contains Unicode Letters is selected without an alias, an error during alias mapping causes the query to hang before the planning phase. CANCEL QUERY is ineffective.
 * Environment
 ** Impala 4.4.0, Hive 3.1.3.
 * Steps to Reproduce
 ** In the SELECT list, use an expression containing Unicode Letters without an alias.
 ** Example : `select 누적합 - lag (누적합) over (partition by day order by day) from base`
 * Actual Behavior
 ** During alias mapping, invoking HiveLexer triggers repeated retries without consuming input, and the query hangs. Threads remain RUNNABLE and cannot be canceled


>  Query hangs when selecting an expression that contains Unicode Letters
> -----------------------------------------------------------------------
>
>                 Key: IMPALA-14551
>                 URL: https://issues.apache.org/jira/browse/IMPALA-14551
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>            Reporter: woosuk.ro
>            Assignee: woosuk.ro
>            Priority: Major
>             Fix For: Impala 4.4.0
>
>
> * Summary
>  ** When a complex expression that contains Unicode Letters is selected without an alias, an error during alias mapping causes the query to hang before the planning phase. CANCEL QUERY is ineffective.
>  * Environment
>  ** Impala 4.4.0
>  ** Apache Hive 3.1.3 (without HIVE-19064)
>  ** ANTLR runtime 3.3
>  * Steps to Reproduce
>  ** In the SELECT list, use an expression containing Unicode Letters without an alias.
>  ** Example : `select 누적합 - lag (누적합) over (partition by day order by day) from base`
>  * Actual Behavior
>  ** During alias mapping, invoking HiveLexer triggers repeated retries without consuming input, and the query hangs. Threads remain RUNNABLE and cannot be canceled
>  * Call Stack (Thread RUNNABLE state)
> {code:java}
> "Thread-3474785" Id=3484730 RUNNABLE
>   ... 
> 	at org.antlr.runtime.RecognitionException.<init>(RecognitionException.java:102)
> 	at org.antlr.runtime.FailedPredicateException.<init>(FailedPredicateException.java:46)
> 	at org.apache.hadoop.hive.ql.parse.HiveLexer.mIdentifier(HiveLexer.java:9623)
> 	at org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer.java:12524)
> 	at org.antlr.runtime.Lexer.nextToken(Lexer.java:89)
> 	at org.apache.impala.analysis.ToSqlUtils.hiveNeedsQuotes(ToSqlUtils.java:181)
>    ...  
> 	at org.apache.impala.service.JniFrontend.createExecRequest(JniFrontend.java:175) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org