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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

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>

@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
Comment on lines +111 to +112
string credential = 3;
string service_account = 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need 2 fields here stand for? IIRC, we only need a service account json encoded by base64.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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