Commit 7178ccf
committed
[SPARK-21936][SQL] backward compatibility test framework for HiveExternalCatalog
`HiveExternalCatalog` is a semi-public interface. When creating tables, `HiveExternalCatalog` converts the table metadata to hive table format and save into hive metastore. It's very import to guarantee backward compatibility here, i.e., tables created by previous Spark versions should still be readable in newer Spark versions.
Previously we find backward compatibility issues manually, which is really easy to miss bugs. This PR introduces a test framework to automatically test `HiveExternalCatalog` backward compatibility, by downloading Spark binaries with different versions, and create tables with these Spark versions, and read these tables with current Spark version.
test-only change
Author: Wenchen Fan <[email protected]>
Closes #19148 from cloud-fan/test.1 parent 781a1f8 commit 7178ccf
File tree
6 files changed
+301
-366
lines changed- sql/hive
- src/test/scala/org/apache/spark/sql/hive
6 files changed
+301
-366
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
| |||
Lines changed: 0 additions & 264 deletions
This file was deleted.
0 commit comments