impala-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jruss...@apache.org
Subject [1/6] incubator-impala git commit: IMPALA-5975: Work around broken beeline clients
Date Fri, 29 Sep 2017 19:14:31 GMT
Repository: incubator-impala
Updated Branches:
  refs/heads/master dd340b881 -> 64d0dd93e


IMPALA-5975: Work around broken beeline clients

To make statements execute, some clients require always appending
a semi-colon to the end.  The workaround is quite simple.

Change-Id: Id8b9f3dde4445513f1f389785a002c6cc6b3dada
Reviewed-on: http://gerrit.cloudera.org:8080/8132
Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/439f245d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/439f245d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/439f245d

Branch: refs/heads/master
Commit: 439f245d34fa7a76508a5a620a0d69e7bed947a4
Parents: dd340b8
Author: Zachary Amsden <zamsden@cloudera.com>
Authored: Fri Sep 22 18:38:58 2017 -0700
Committer: Impala Public Jenkins <impala-public-jenkins@gerrit.cloudera.org>
Committed: Wed Sep 27 03:27:45 2017 +0000

----------------------------------------------------------------------
 testdata/bin/create-load-data.sh         | 2 +-
 testdata/bin/create-table-many-blocks.sh | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/439f245d/testdata/bin/create-load-data.sh
----------------------------------------------------------------------
diff --git a/testdata/bin/create-load-data.sh b/testdata/bin/create-load-data.sh
index 6e43380..97787c2 100755
--- a/testdata/bin/create-load-data.sh
+++ b/testdata/bin/create-load-data.sh
@@ -311,7 +311,7 @@ function create-internal-hbase-table {
   # Need to investigate this more, but this works around the problem to unblock automation.
   set +o errexit
   beeline -n $USER -u "${JDBC_URL}" -e\
-    "DROP TABLE IF EXISTS functional_hbase.internal_hbase_table"
+    "DROP TABLE IF EXISTS functional_hbase.internal_hbase_table;"
   echo "disable 'functional_hbase.internal_hbase_table'" | hbase shell
   echo "drop 'functional_hbase.internal_hbase_table'" | hbase shell
   set -e

http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/439f245d/testdata/bin/create-table-many-blocks.sh
----------------------------------------------------------------------
diff --git a/testdata/bin/create-table-many-blocks.sh b/testdata/bin/create-table-many-blocks.sh
index abdf94f..4c0a57d 100755
--- a/testdata/bin/create-table-many-blocks.sh
+++ b/testdata/bin/create-table-many-blocks.sh
@@ -72,9 +72,9 @@ HDFS_PATH=/test-warehouse/many_blocks_num_blocks_per_partition_${BLOCKS_PER_PART
 DB_NAME=scale_db
 TBL_NAME=num_partitions_${NUM_PARTITIONS}_blocks_per_partition_${BLOCKS_PER_PARTITION}
 
-$HIVE_CMD -e "create database if not exists scale_db"
-$HIVE_CMD -e "drop table if exists ${DB_NAME}.${TBL_NAME}"
-$HIVE_CMD -e "create external table ${DB_NAME}.${TBL_NAME} (i int) partitioned by (j int)"
+$HIVE_CMD -e "create database if not exists scale_db;"
+$HIVE_CMD -e "drop table if exists ${DB_NAME}.${TBL_NAME};"
+$HIVE_CMD -e "create external table ${DB_NAME}.${TBL_NAME} (i int) partitioned by (j int);"
 
 # Generate many (small) files. Each file will be assigned a unique block.
 echo "Generating ${BLOCKS_PER_PARTITION} files"


Mime
View raw message