Skip to content

Commit

Permalink
HIVE-16922: Typo in serde.thrift: COLLECTION_DELIM = "colelction.deli…
Browse files Browse the repository at this point in the history
…m" (Bing Li reviewed by Ashutosh and Rui)
  • Loading branch information
mlibing authored and lirui-apache committed Jul 18, 2017
1 parent e708103 commit c59a8c6
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 19 deletions.
2 changes: 1 addition & 1 deletion hcatalog/src/test/e2e/hcatalog/tests/hcat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe extended hcat_createtable_6;
#,
,'rc' => 0
,'expected_out_regex' =>
'a(\s)+int(\s)+None(\s)+\nb(\s)+array<int>(\s)+None(\s)+\nc(\s)+map<string,string>(\s)+None(\s)+\n(.*(\s))*.*parameters:.*colelction.delim=,, mapkey.delim=:, serialization.format=|, line.delim=\n, field.delim=^'
'a(\s)+int(\s)+None(\s)+\nb(\s)+array<int>(\s)+None(\s)+\nc(\s)+map<string,string>(\s)+None(\s)+\n(.*(\s))*.*parameters:.*collection.delim=,, mapkey.delim=:, serialization.format=|, line.delim=\n, field.delim=^'
,'expected_err_regex' => 'OK(.*)OK(.*)OK'
},

Expand Down
3 changes: 3 additions & 0 deletions metastore/scripts/upgrade/derby/043-HIVE-16922.derby.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UPDATE SERDE_PARAMS
SET PARAM_KEY='collection.delim'
WHERE PARAM_KEY='colelction.delim';
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- Upgrade MetaStore schema from 2.3.0 to 3.0.0
RUN '041-HIVE-16556.derby.sql';
RUN '042-HIVE-16575.derby.sql';
RUN '043-HIVE-16922.derby.sql';

UPDATE "APP".VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1;
3 changes: 3 additions & 0 deletions metastore/scripts/upgrade/mssql/028-HIVE-16922.mssql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UPDATE SERDE_PARAMS
SET PARAM_KEY='collection.delim'
WHERE PARAM_KEY='colelction.delim';
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0' AS MESSAGE;

:r 026-HIVE-16556.mssql.sql
:r 027-HIVE-16575.mssql.sql
:r 028-HIVE-16922.mssql.sql

UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1;
SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS MESSAGE;
3 changes: 3 additions & 0 deletions metastore/scripts/upgrade/mysql/043-HIVE-16922.mysql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UPDATE SERDE_PARAMS
SET PARAM_KEY='collection.delim'
WHERE PARAM_KEY='colelction.delim';
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0' AS ' ';

SOURCE 041-HIVE-16556.mysql.sql;
SOURCE 042-HIVE-16575.mysql.sql;
SOURCE 043-HIVE-16922.mysql.sql;

UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1;
SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS ' ';
Expand Down
3 changes: 3 additions & 0 deletions metastore/scripts/upgrade/oracle/043-HIVE-16922.oracle.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UPDATE SERDE_PARAMS
SET PARAM_KEY='collection.delim'
WHERE PARAM_KEY='colelction.delim';
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0' AS Status from dual;

@041-HIVE-16556.oracle.sql;
@042-HIVE-16575.oracle.sql;
@043-HIVE-16922.oracle.sql;

UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1;
SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS Status from dual;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UPDATE SERDE_PARAMS
SET PARAM_KEY='collection.delim'
WHERE PARAM_KEY='colelction.delim';
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0';

\i 040-HIVE-16556.postgres.sql;
\i 041-HIVE-16575.postgres.sql;
\i 042-HIVE-16922.postgres.sql;

UPDATE "VERSION" SET "SCHEMA_VERSION"='3.0.0', "VERSION_COMMENT"='Hive release version 3.0.0' where "VER_ID"=1;
SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format'= 'org.apache.hadoop.hive.serde2.thrift.TCTLSeparatedProtocol',
'quote.delim'= '(\"|\\[|\\])', 'field.delim'=',',
'serialization.null.format'='-NA-', 'colelction.delim'='#') STORED AS TEXTFILE
'serialization.null.format'='-NA-', 'collection.delim'='#') STORED AS TEXTFILE
select a, null, b from array_table;

dfs -cat ../../data/files/array_table_4/000000_0;
Expand All @@ -98,7 +98,7 @@ ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format'= 'org.apache.hadoop.hive.serde2.thrift.TCTLSeparatedProtocol',
'quote.delim'= '(\"|\\[|\\])', 'field.delim'=':',
'serialization.null.format'='-NA-', 'colelction.delim'='#', 'mapkey.delim'='%') STORED AS TEXTFILE
'serialization.null.format'='-NA-', 'collection.delim'='#', 'mapkey.delim'='%') STORED AS TEXTFILE
select foo, null, bar from map_table;

dfs -cat ../../data/files/map_table_4/000000_0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format'= 'org.apache.hadoop.hive.serde2.thrift.TCTLSeparatedProtocol',
'quote.delim'= '(\"|\\[|\\])', 'field.delim'=',',
'serialization.null.format'='-NA-', 'colelction.delim'='#') STORED AS TEXTFILE
'serialization.null.format'='-NA-', 'collection.delim'='#') STORED AS TEXTFILE
select a, null, b from array_table
PREHOOK: type: QUERY
PREHOOK: Input: default@array_table
Expand All @@ -1201,7 +1201,7 @@ ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format'= 'org.apache.hadoop.hive.serde2.thrift.TCTLSeparatedProtocol',
'quote.delim'= '(\"|\\[|\\])', 'field.delim'=',',
'serialization.null.format'='-NA-', 'colelction.delim'='#') STORED AS TEXTFILE
'serialization.null.format'='-NA-', 'collection.delim'='#') STORED AS TEXTFILE
select a, null, b from array_table
POSTHOOK: type: QUERY
POSTHOOK: Input: default@array_table
Expand Down Expand Up @@ -1229,7 +1229,7 @@ ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format'= 'org.apache.hadoop.hive.serde2.thrift.TCTLSeparatedProtocol',
'quote.delim'= '(\"|\\[|\\])', 'field.delim'=':',
'serialization.null.format'='-NA-', 'colelction.delim'='#', 'mapkey.delim'='%') STORED AS TEXTFILE
'serialization.null.format'='-NA-', 'collection.delim'='#', 'mapkey.delim'='%') STORED AS TEXTFILE
select foo, null, bar from map_table
PREHOOK: type: QUERY
PREHOOK: Input: default@map_table
Expand All @@ -1239,7 +1239,7 @@ ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format'= 'org.apache.hadoop.hive.serde2.thrift.TCTLSeparatedProtocol',
'quote.delim'= '(\"|\\[|\\])', 'field.delim'=':',
'serialization.null.format'='-NA-', 'colelction.delim'='#', 'mapkey.delim'='%') STORED AS TEXTFILE
'serialization.null.format'='-NA-', 'collection.delim'='#', 'mapkey.delim'='%') STORED AS TEXTFILE
select foo, null, bar from map_table
POSTHOOK: type: QUERY
POSTHOOK: Input: default@map_table
Expand Down
2 changes: 1 addition & 1 deletion ql/src/test/results/clientpositive/llap/orc_create.q.out
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Num Buckets: -1
Bucket Columns: []
Sort Columns: []
Storage Desc Params:
colelction.delim ,
collection.delim ,
field.delim |
mapkey.delim :
serialization.format |
Expand Down
2 changes: 1 addition & 1 deletion ql/src/test/results/clientpositive/orc_create.q.out
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Num Buckets: -1
Bucket Columns: []
Sort Columns: []
Storage Desc Params:
colelction.delim ,
collection.delim ,
field.delim |
mapkey.delim :
serialization.format |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Num Buckets: -1
Bucket Columns: []
Sort Columns: []
Storage Desc Params:
colelction.delim ,
collection.delim ,
field.delim |
mapkey.delim :
serialization.format |
Expand Down Expand Up @@ -210,7 +210,7 @@ Num Buckets: -1
Bucket Columns: []
Sort Columns: []
Storage Desc Params:
colelction.delim ,
collection.delim ,
field.delim |
mapkey.delim :
serialization.format |
Expand Down Expand Up @@ -263,7 +263,7 @@ Num Buckets: -1
Bucket Columns: []
Sort Columns: []
Storage Desc Params:
colelction.delim ,
collection.delim ,
field.delim |
mapkey.delim :
serialization.format |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CREATE TABLE `tmp_showcrt1`(
ROW FORMAT SERDE
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'colelction.delim'='|',
'collection.delim'='|',
'field.delim'=',',
'line.delim'='\n',
'mapkey.delim'='%',
Expand Down
2 changes: 1 addition & 1 deletion serde/if/serde.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const string SERIALIZATION_USE_JSON_OBJECTS = "serialization.use.json.object"
const string SERIALIZATION_ENCODING = "serialization.encoding"

const string FIELD_DELIM = "field.delim"
const string COLLECTION_DELIM = "colelction.delim"
const string COLLECTION_DELIM = "collection.delim"
const string LINE_DELIM = "line.delim"
const string MAPKEY_DELIM = "mapkey.delim"
const string QUOTE_CHAR = "quote.delim"
Expand Down
2 changes: 1 addition & 1 deletion serde/src/gen/thrift/gen-cpp/serde_constants.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion serde/src/gen/thrift/gen-rb/serde_constants.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c59a8c6

Please sign in to comment.