From 1d35ad45adbd01738df3faa770e1f1411a204828 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Wed, 18 Nov 2020 19:14:34 -0800 Subject: [PATCH 1/2] [MINOR][INFRA] Fix rat exclusion not to exclude `catalog` --- dev/.rat-excludes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/.rat-excludes b/dev/.rat-excludes index 0e892a927906a..e2006769ec2b7 100644 --- a/dev/.rat-excludes +++ b/dev/.rat-excludes @@ -46,7 +46,7 @@ jsonFormatter.min.js .*txt .*json .*data -.*log +.*\.log pyspark-coverage-site/* cloudpickle/* join.py From 45658f0994bb37e097dbc0dae4a049e5a996eb21 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Wed, 18 Nov 2020 20:01:32 -0800 Subject: [PATCH 2/2] Fix more --- dev/.rat-excludes | 26 ++++++++++++------- .../resources/data/scripts/test_transform.py | 18 +++++++++++++ 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/dev/.rat-excludes b/dev/.rat-excludes index e2006769ec2b7..7da330dfe1fbf 100644 --- a/dev/.rat-excludes +++ b/dev/.rat-excludes @@ -42,10 +42,10 @@ jquery.dataTables.1.10.20.min.js jquery.mustache.js jsonFormatter.min.css jsonFormatter.min.js -.*avsc -.*txt -.*json -.*data +.*\.avsc +.*\.txt +.*\.json +.*\.data .*\.log pyspark-coverage-site/* cloudpickle/* @@ -98,17 +98,17 @@ local-1430917381535_2 DESCRIPTION NAMESPACE test_support/* -.*Rd +.*\.Rd help/* html/* INDEX .lintr gen-java.* -.*avpr -.*parquet +.*\.avpr +.*\.parquet spark-deps-.* -.*csv -.*tsv +.*\.csv +.*\.tsv .*\.sql .Rbuildignore META-INF/* @@ -125,3 +125,11 @@ application_1578436911597_0052 config.properties app-20200706201101-0003 py.typed +_metadata +_SUCCESS +part-00000 +.*\.res +flights_tiny.txt.1 +over1k +over10k +exported_table/* diff --git a/sql/hive/src/test/resources/data/scripts/test_transform.py b/sql/hive/src/test/resources/data/scripts/test_transform.py index ac6d11d8b919c..dedb370f6c90e 100755 --- a/sql/hive/src/test/resources/data/scripts/test_transform.py +++ b/sql/hive/src/test/resources/data/scripts/test_transform.py @@ -1,3 +1,21 @@ +# +# 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. +# import sys delim = sys.argv[1]