Skip to content

Support copying from glob patterns #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

aykut-bozkurt
Copy link
Member

@aykut-bozkurt aykut-bozkurt commented Mar 19, 2025

  • Adds udf parquet.list(<uri_with_pattern>) where uri_with_pattern might contain * for words of arbitrary length or ** for arbitrarily nested directories.
  • Support COPY FROM <uri_with_pattern>.
COPY test1 TO '/tmp/parent/child/test1.parquet';
COPY test2 TO '/tmp/parent/child/test2.parquet';

COPY test3 FROM '/tmp/parent/**/*.parquet' WITH (format 'parquet');

Warning: list operation is not supported for http(s) object stores. (available for all other stores)

Closes #112.

Sorry, something went wrong.

Copy link

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 98.67841% with 6 lines in your changes missing coverage. Please review.

Project coverage is 91.48%. Comparing base (6b5a0d5) to head (5c006b4).

Files with missing lines Patch % Lines
src/arrow_parquet/parquet_reader.rs 98.07% 3 Missing ⚠️
src/parquet_udfs/list.rs 96.05% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
+ Coverage   91.30%   91.48%   +0.18%     
==========================================
  Files          91       92       +1     
  Lines       13153    13510     +357     
==========================================
+ Hits        12009    12360     +351     
- Misses       1144     1150       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aykut-bozkurt aykut-bozkurt force-pushed the aykut/glob-read branch 2 times, most recently from 1f74247 to b5afb04 Compare April 17, 2025 16:34
@aykut-bozkurt aykut-bozkurt marked this pull request as ready for review April 17, 2025 18:32
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/glob-read branch 2 times, most recently from c32dba4 to ed971ec Compare May 5, 2025 15:05
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/glob-read branch 2 times, most recently from ce63b56 to 592efe8 Compare June 11, 2025 20:00
Closes #112.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support glob patterns
1 participant