From 623001b34e3964b5af9753c555b0720e3c8f03df Mon Sep 17 00:00:00 2001 From: Will Jones Date: Thu, 19 Jan 2023 13:50:14 -0800 Subject: [PATCH] fix two small issues (#32) * fix two small issues * Fix test path --- README.md | 2 +- dat/models.py | 2 +- tests/pyspark_delta/test_pyspark_delta.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2b38b90..3c50209 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ To download and unpack: ``` VERSION=0.0.1 curl -OL https://github.com/delta-incubator/dat/releases/download/v$VERSION/deltalake-dat-v$VERSION.tar.gz -tar -xzvf deltalake-dat-v$VERSION.tar.gz +tar --no-same-permissions -xzf deltalake-dat-v$VERSION.tar.gz ``` ## Testing Readers diff --git a/dat/models.py b/dat/models.py index 2a24af6..27f702b 100644 --- a/dat/models.py +++ b/dat/models.py @@ -23,7 +23,7 @@ def expected_root(self, version: Optional[int] = None) -> Path: return self.root / 'expected' / version_path def expected_path(self, version: Optional[int] = None) -> str: - return str(self.expected_root(version) / 'table_content.parquet') + return str(self.expected_root(version) / 'table_content') class TableVersionMetadata(BaseModel): diff --git a/tests/pyspark_delta/test_pyspark_delta.py b/tests/pyspark_delta/test_pyspark_delta.py index 6486010..d38c658 100644 --- a/tests/pyspark_delta/test_pyspark_delta.py +++ b/tests/pyspark_delta/test_pyspark_delta.py @@ -42,7 +42,7 @@ class ReadCase(NamedTuple): case = ReadCase( delta_root=path / 'delta', version=version, - parquet_root=version_path, + parquet_root=version_path / "table_content", name=case_metadata['name'], description=case_metadata['description'], min_reader_version=expected_metadata['min_reader_version'],