[email protected] has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23812


Change subject: IMPALA-14551: Fix hang on Unicode complex expressions in alias 
mapping
......................................................................

IMPALA-14551: Fix hang on Unicode complex expressions in alias mapping

When a complex expression containing Unicode letters is used without
an alias, HiveLexer could enter an infinite loop during identifier
validation in ToSqlUtils.hiveNeedsQuotes().

Root cause: ANTLR 3.3's Lexer.nextToken() does not call recover() for
RecognitionException, causing infinite retry on same input position.

Fix: Upgrade antlr-runtime from 3.3 to 3.5.3. In ANTLR 3.4+, recover()
calls input.consume() to advance past problematic characters.

Note: This issue does NOT occur with CDP Hive (which includes HIVE-19064),
but affects Apache Hive 3.1.3 without the patch. This fix ensures
compatibility with unpatched Hive versions.

Testing:
- Added testHiveNeedsQuotesUnicodeComplexExpression with timeout

Change-Id: I175de0c3cd958a03e5ca02590a8b84ca6e674f3d
---
M fe/pom.xml
M fe/src/test/java/org/apache/impala/analysis/ToSqlUtilsTest.java
2 files changed, 12 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/12/23812/1
--
To view, visit http://gerrit.cloudera.org:8080/23812
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I175de0c3cd958a03e5ca02590a8b84ca6e674f3d
Gerrit-Change-Number: 23812
Gerrit-PatchSet: 1
Gerrit-Owner: Anonymous Coward <[email protected]>

Reply via email to