Gowthami Bisati has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/24554


Change subject: IMPALA-5924: Improve formatting of TBLPROPERTIES in SHOW CREATE 
TABLE
......................................................................

IMPALA-5924: Improve formatting of TBLPROPERTIES in SHOW CREATE TABLE

When we run SHOW CREATE TABLE via Impala-shell output displays the
TBLPROPERTIES in a single line which makes it difficult to read
through all the properties.

Change:
Modified ToSqlUtils.java to wrap reconstructed TBLPROPERTIES into a
clean multi-line, indented layout instead of outputting them as a
single dense line.

Modified ToSqlTest.java to update the expected string assertions to
match the new multi-line format.

Example:
Before this change, TBLPROPERTIES were formatted on a single line in
SHOW CREATE TABLE output:
  TBLPROPERTIES ('OBJCAPABILITIES'='HIVEMANAGEDINSERTREAD...', ...)

After this change, they are cleanly wrapped:
  TBLPROPERTIES (
    'OBJCAPABILITIES'='EXTREAD,EXTWRITE',
    'TRANSLATED_TO_EXTERNAL'='TRUE',
    'external.table.purge'='TRUE'
  )

This improves the readability of generated DDL statements when
executing SHOW CREATE TABLE or viewing view definitions via
impala-shell.

Testing Performed:
- Updated expected string outputs in ToSqlTest.java to account for the
  new whitespace layouts.
- Verified frontend changes compile cleanly using checkstyle.
- Ran mvn clean package -DskipTests (BUILD SUCCESS).
- Ran focus testing suite: mvn test -Dtest=ToSqlTest
  (BUILD SUCCESS).
- Ran idempotency integrity validation suite:
  mvn test -Dtest=ToSqlUtilsTest (BUILD SUCCESS).

Change-Id: Ic198d0a42cf3636fe612460c12d8c8000a313ef1
Signed-off-by: Gowthami Bisati <[email protected]>
---
M fe/src/main/java/org/apache/impala/analysis/ToSqlUtils.java
M fe/src/test/java/org/apache/impala/analysis/ToSqlTest.java
2 files changed, 17 insertions(+), 15 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic198d0a42cf3636fe612460c12d8c8000a313ef1
Gerrit-Change-Number: 24554
Gerrit-PatchSet: 1
Gerrit-Owner: Gowthami Bisati <[email protected]>

Reply via email to