From 72c9432c4a6a6991941858282ec05caeebcbfec4 Mon Sep 17 00:00:00 2001 From: Hanefi Onaldi Date: Fri, 10 Sep 2021 17:12:03 +0300 Subject: [PATCH 1/2] Remove unused lfs attributes for test csv The data is not stored in the working directory, but fetched by a script. See test_data_provider, and .gitignore entries for the fetched csv files. --- .gitattributes | 1 - data/.gitattributes | 1 - 2 files changed, 2 deletions(-) delete mode 100644 data/.gitattributes diff --git a/.gitattributes b/.gitattributes index d23b35e..ad92d6d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ *.[ch] citus-style -/data/customer_reviews_1998.csv filter=lfs diff=lfs merge=lfs -text diff --git a/data/.gitattributes b/data/.gitattributes deleted file mode 100644 index 79ca7c3..0000000 --- a/data/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -/data/customer_reviews_1998.csv filter=lfs diff=lfs merge=lfs -text From 8e3526be3290c93abb8dea3d477d5d5cf199cec4 Mon Sep 17 00:00:00 2001 From: Hanefi Onaldi Date: Fri, 10 Sep 2021 19:07:28 +0300 Subject: [PATCH 2/2] Create data directory if it does not exist --- test_data_provider | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_data_provider b/test_data_provider index 2dc89cd..1d2f6b8 100755 --- a/test_data_provider +++ b/test_data_provider @@ -1,4 +1,8 @@ +#!/bin/sh +set -eu + if [ ! -f ./data/customer_reviews_1998.csv ]; then + mkdir -p data cd ./data curl -L http://examples.citusdata.com/customer_reviews_1998.csv.gz > customer_reviews_1998.csv.gz gzip -d customer_reviews_1998.csv