You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@impala.apache.org by "Feng Guangyuan (Code Review)" <ge...@cloudera.org> on 2016/06/01 08:46:14 UTC

[Impala-CR](cdh5-trunk) IMPALA-3622: Unacceptable '\0' used as fields terminator when creating tables

Feng Guangyuan has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/3266

Change subject: IMPALA-3622: Unacceptable '\0' used as fields terminator when creating tables
......................................................................

IMPALA-3622: Unacceptable '\0' used as fields terminator when creating tables

When a delimiter is sent to PostgresSQL, '\0' will be interpreted as "", which
is not allowed to the frontend, actually. However, '\0' will circumvent this
rule, so the bug occurs.

This change adds a rule in getXXDelimiter()/getEscapeChar() to return "0" when
the delimiter is '\0' or '\u0000' for the time being.

Change-Id: Id67634282ecf0161a3aa7a3d7f8711b49828668e
---
M fe/src/main/java/com/cloudera/impala/catalog/RowFormat.java
1 file changed, 3 insertions(+), 0 deletions(-)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id67634282ecf0161a3aa7a3d7f8711b49828668e
Gerrit-PatchSet: 1
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Feng Guangyuan <gu...@intel.com>