Quanlong Huang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/16146


Change subject: IMPALA-9921: Change error messages in checking needsQuotes to 
TRACE level logs
......................................................................

IMPALA-9921: Change error messages in checking needsQuotes to TRACE level logs

Impala planner uses the HiveLexer to check whether an ident needs to be
quoted in toSql results. However, HiveLexer will print error messages to
stderr which is redirected to impalad.ERROR, so they appear as ERROR
level logs. Actually, they just mean HiveLexer can't parse the ident so
they are not Hive keywords so don't need to be quoted. These error
messages don't mean anything wrong so shouldn't be ERROR level logs.

This patch overrides the HiveLexer used in ToSqlUtils to log the error
messages to TRACE level logs.

Tests
 * Manually verify the error messages don't appear in impalad.ERROR and
   are printed to TRACE level logs.

Change-Id: I0e1b5d2963285dc9125d8e0b8ed25c4db6821e0b
---
M fe/src/main/java/org/apache/impala/analysis/ToSqlUtils.java
1 file changed, 15 insertions(+), 1 deletion(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0e1b5d2963285dc9125d8e0b8ed25c4db6821e0b
Gerrit-Change-Number: 16146
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <huangquanl...@gmail.com>

Reply via email to