Author: arvind
Date: Thu Nov 3 23:31:59 2011
New Revision: 1197346
URL: http://svn.apache.org/viewvc?rev=1197346&view=rev
Log:
SQOOP-388. Add license header to Hive testdata.
(Bilung Lee via Arvind Prabhakar)
Modified:
incubator/sqoop/trunk/testdata/hive/bin/hive
incubator/sqoop/trunk/testdata/hive/scripts/createOnlyImport.q
incubator/sqoop/trunk/testdata/hive/scripts/createOverwriteImport.q
incubator/sqoop/trunk/testdata/hive/scripts/customDelimImport.q
incubator/sqoop/trunk/testdata/hive/scripts/dateImport.q
incubator/sqoop/trunk/testdata/hive/scripts/failingImport.q
incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineImport.q
incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineReplacementImport.q
incubator/sqoop/trunk/testdata/hive/scripts/normalImport.q
incubator/sqoop/trunk/testdata/hive/scripts/numericImport.q
incubator/sqoop/trunk/testdata/hive/scripts/partitionImport.q
Modified: incubator/sqoop/trunk/testdata/hive/bin/hive
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/bin/hive?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/bin/hive (original)
+++ incubator/sqoop/trunk/testdata/hive/bin/hive Thu Nov 3 23:31:59 2011
@@ -54,7 +54,7 @@ COPIED_SCRIPT="$TMPDIR/$SCRIPT_BASE"
sed -i -e "s|BASEPATH|$TMPDIR|" $COPIED_SCRIPT
# Actually check to see that the input we got matches up.
-diff --ignore-all-space --ignore-blank-lines "$COPIED_SCRIPT" "$GENERATED_SCRIPT"
+diff --ignore-matching-lines=--.* --ignore-all-space --ignore-blank-lines "$COPIED_SCRIPT"
"$GENERATED_SCRIPT"
ret=$?
exit $ret
Modified: incubator/sqoop/trunk/testdata/hive/scripts/createOnlyImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/createOnlyImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/createOnlyImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/createOnlyImport.q Thu Nov 3 23:31:59 2011
@@ -1 +1,16 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `CREATE_ONLY_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT,
`DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012'
STORED AS TEXTFILE;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/createOverwriteImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/createOverwriteImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/createOverwriteImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/createOverwriteImport.q Thu Nov 3 23:31:59
2011
@@ -1 +1,16 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE `CREATE_OVERWRITE_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2`
STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED
AS TEXTFILE;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/customDelimImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/customDelimImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/customDelimImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/customDelimImport.q Thu Nov 3 23:31:59 2011
@@ -1,2 +1,17 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `CUSTOM_DELIM_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2`
STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\054' LINES TERMINATED BY '\174' STORED
AS TEXTFILE;
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/CUSTOM_DELIM_IMPORT' INTO TABLE `CUSTOM_DELIM_IMPORT`;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/dateImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/dateImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/dateImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/dateImport.q Thu Nov 3 23:31:59 2011
@@ -1,2 +1,17 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `DATE_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` STRING) ROW
FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE;
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/DATE_HIVE_IMPORT' INTO TABLE `DATE_HIVE_IMPORT`;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/failingImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/failingImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/failingImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/failingImport.q Thu Nov 3 23:31:59 2011
@@ -1,2 +1,17 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `DATE_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` STRING) ROW
FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE;
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/DATE_HIVE_IMPORT' INTO TABLE `DATE_HIVE_IMPORT`;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineImport.q Thu Nov 3 23:31:59
2011
@@ -1,2 +1,17 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `FIELD_WITH_NL_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1`
INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED
BY '\012' STORED AS TEXTFILE;
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/FIELD_WITH_NL_HIVE_IMPORT' INTO TABLE `FIELD_WITH_NL_HIVE_IMPORT`;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineReplacementImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineReplacementImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineReplacementImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/fieldWithNewlineReplacementImport.q Thu Nov
3 23:31:59 2011
@@ -1,2 +1,17 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `FIELD_WITH_NL_REPLACEMENT_HIVE_IMPORT` ( `DATA_COL0` STRING,
`DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES
TERMINATED BY '\012' STORED AS TEXTFILE;
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/FIELD_WITH_NL_REPLACEMENT_HIVE_IMPORT' INTO
TABLE `FIELD_WITH_NL_REPLACEMENT_HIVE_IMPORT`;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/normalImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/normalImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/normalImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/normalImport.q Thu Nov 3 23:31:59 2011
@@ -1,2 +1,17 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `NORMAL_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2`
STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED
AS TEXTFILE;
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/NORMAL_HIVE_IMPORT' INTO TABLE `NORMAL_HIVE_IMPORT`;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/numericImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/numericImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/numericImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/numericImport.q Thu Nov 3 23:31:59 2011
@@ -1,2 +1,17 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `NUMERIC_HIVE_IMPORT` ( `DATA_COL0` DOUBLE, `DATA_COL1` STRING)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE;
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/NUMERIC_HIVE_IMPORT' INTO TABLE `NUMERIC_HIVE_IMPORT`;
Modified: incubator/sqoop/trunk/testdata/hive/scripts/partitionImport.q
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/testdata/hive/scripts/partitionImport.q?rev=1197346&r1=1197345&r2=1197346&view=diff
==============================================================================
--- incubator/sqoop/trunk/testdata/hive/scripts/partitionImport.q (original)
+++ incubator/sqoop/trunk/testdata/hive/scripts/partitionImport.q Thu Nov 3 23:31:59 2011
@@ -1,2 +1,17 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
CREATE TABLE IF NOT EXISTS `PARTITION_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT,
`DATA_COL2` STRING) PARTITIONED BY (ds STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001'
LINES TERMINATED BY '\012' STORED AS TEXTFILE;
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/PARTITION_HIVE_IMPORT' INTO TABLE `PARTITION_HIVE_IMPORT`
PARTITION (ds='20110413');
|