marchpure commented on a change in pull request #3665: [HOTFIX] Fix CarbonHive
CI Failures
URL: https://github.com/apache/carbondata/pull/3665#discussion_r391841990
##########
File path:
integration/hive/src/test/java/org/apache/carbondata/hive/HiveCarbonTest.java
##########
@@ -52,8 +58,9 @@ public static void setup() throws Exception {
statement.execute("drop table if exists hive_carbon_table5");
statement.execute("drop table if exists hive_table");
statement.execute("drop table if exists hive_table_complex");
- statement.execute("CREATE external TABLE hive_table_complex(arrayField
ARRAY<STRING>, mapField MAP<String, String>, structField STRUCT<city: String,
pincode: int>) ROW FORMAT SERDE
'org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe' WITH SERDEPROPERTIES
('field.delim'=',', 'collection.delim'='$', 'mapkey.delim'='@') location
'/home/root1/projects/carbondata/integration/hive/src/main/resources/complex/'
TBLPROPERTIES('external.table.purge'='false')");
- statement.execute("CREATE external TABLE hive_table( shortField SMALLINT,
intField INT, bigintField BIGINT , doubleField DOUBLE, stringField STRING,
timestampField TIMESTAMP, decimalField DECIMAL(18,2), dateField DATE, charField
CHAR(5), floatField FLOAT) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
location
'/home/root1/projects/carbondata/integration/hive/src/main/resources/csv/'
TBLPROPERTIES ('external.table.purge'='false')");
+ String csvFilePath = csvFile.getCanonicalPath().replace("\\", "/");
+ statement.execute(String.format("CREATE external TABLE
hive_table_complex(arrayField ARRAY<STRING>, mapField MAP<String, String>,
structField STRUCT<city: String, pincode: int>) ROW FORMAT SERDE
'org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe' WITH SERDEPROPERTIES
('field.delim'=',', 'collection.delim'='$', 'mapkey.delim'='@') location '%s'
TBLPROPERTIES('external.table.purge'='false')", csvFilePath));
Review comment:
solved
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services