feat(pytest): add read_table() and log_files() to DeltaTestLocation (#6135)#6219
Open
kimjune01 wants to merge 1 commit into
Open
feat(pytest): add read_table() and log_files() to DeltaTestLocation (#6135)#6219kimjune01 wants to merge 1 commit into
kimjune01 wants to merge 1 commit into
Conversation
DeltaTestLocation.row_count() was sufficient for basic validation, but tests that need to inspect table contents or verify file-level behavior require richer access. Add two methods: * read_table(missing_ok=False) → pyarrow.Table | None Returns the current snapshot as a pyarrow Table. Useful for row-level assertions. * log_files(missing_ok=False) → list[str] Returns the list of parquet file URIs in the current snapshot. Useful for verifying compaction, file count, and storage layout. Both follow the existing pattern: deferred deltalake import to avoid aarch64 import crashes, and missing_ok flag to probe caches. Fixes feldera#6135 Signed-off-by: June Kim <june@ea.com> Signed-off-by: June Kim <kimjune01@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
read_table()method toDeltaTestLocationthat returns the Delta table as a PyArrow Table, withmissing_okparameter for graceful handling of non-existent tableslog_files()method that returns the list of data file URIs in the current Delta snapshot, also withmissing_oksupportrow_countpattern) to avoid crashes on aarch64 hostsFixes #6135
Test plan
missing_ok=True/False, reading existing tables, listing files@skip_on_arm64matching repo conventions