impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feng Guangyuan (Code Review)" <ger...@cloudera.org>
Subject [Impala-CR](cdh5-trunk) IMPALA-3622: Unacceptable '\0' used as fields terminator when creating tables
Date Wed, 01 Jun 2016 08:46:14 GMT
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 <guangyuan.feng@intel.com>

Mime
View raw message