Skip to content
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

feat(connector): introduce gcs file scan #19974

Merged
merged 8 commits into from
Jan 7, 2025
Merged

feat(connector): introduce gcs file scan #19974

merged 8 commits into from
Jan 7, 2025

Conversation

wcy-fdu
Copy link
Contributor

@wcy-fdu wcy-fdu commented Dec 31, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Support table function file_scan from gcs bucket, the syntax is file_scan(parquet, gcs, credential, service_account, file_loaction). The same with s3 file_scan, it also supports reading a single parquet file or all parquet files in a directory.

Implementation detail:

Checklist

  • I have written necessary rustdoc comments.
  • I have added necessary unit tests and integration tests.
  • I have added test labels as necessary.
  • I have added fuzzing tests or opened an issue to track them.
  • My PR contains breaking changes.
  • My PR changes performance-critical code, so I will run (micro) benchmarks and present the results.
  • My PR contains critical fixes that are necessary to be merged into the latest release.

Documentation

  • My PR needs documentation updates.

Pls add this feature in documentation, file_scan(parquet, gcs, credential, service_account, file_loaction).

Release note

@wcy-fdu wcy-fdu marked this pull request as draft December 31, 2024 10:52
pub schema: Schema,
pub file_format: FileFormat,
pub storage_type: StorageType,
pub creditial: String,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable creditial appears to be misspelled - it should be credential to maintain consistency with the protobuf definition and other usages throughout the codebase.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license-eye has checked 5533 files.

Valid Invalid Ignored Fixed
2332 1 3200 0
Click to see the invalid file list
  • src/batch/executors/src/executor/gcs_file_scan.rs
Use this command to fix any missing license headers
```bash

docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix

</details>

src/batch/executors/src/executor/gcs_file_scan.rs Outdated Show resolved Hide resolved
@wcy-fdu wcy-fdu requested review from chenzl25 and hzxa21 January 2, 2025 08:51
@wcy-fdu wcy-fdu marked this pull request as ready for review January 2, 2025 08:51
proto/batch_plan.proto Outdated Show resolved Hide resolved
@wcy-fdu wcy-fdu requested a review from chenzl25 January 6, 2025 10:21
Copy link
Contributor

@chenzl25 chenzl25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

src/frontend/src/expr/table_function.rs Outdated Show resolved Hide resolved
@wcy-fdu wcy-fdu enabled auto-merge January 7, 2025 07:31
@wcy-fdu wcy-fdu added this pull request to the merge queue Jan 7, 2025
Merged via the queue into main with commit bb8b855 Jan 7, 2025
32 of 33 checks passed
@wcy-fdu wcy-fdu deleted the wcy/gcs_file_scan.pr branch January 7, 2025 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants