-
Notifications
You must be signed in to change notification settings - Fork 294
3.0: fix: support parquet s3option and '=' object keys on 3.0-dev #24022
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
Changes from all commits
fceb1b7
b7d91a0
ee82012
78029ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1707,7 +1707,7 @@ func InitS3Param(param *tree.ExternParam) error { | |
| param.S3Param.ExternalId = param.Option[i+1] | ||
| case "format": | ||
| format := strings.ToLower(param.Option[i+1]) | ||
| if format != tree.CSV && format != tree.JSONLINE { | ||
| if format != tree.CSV && format != tree.JSONLINE && format != tree.PARQUET { | ||
| return moerr.NewBadConfigf(param.Ctx, "the format '%s' is not supported", format) | ||
| } | ||
| param.Format = format | ||
|
Comment on lines
1709
to
1713
|
||
|
|
@@ -1795,7 +1795,7 @@ func InitStageS3Param(param *tree.ExternParam, s stage.StageDef) error { | |
| switch strings.ToLower(param.Option[i]) { | ||
| case "format": | ||
| format := strings.ToLower(param.Option[i+1]) | ||
| if format != tree.CSV && format != tree.JSONLINE { | ||
| if format != tree.CSV && format != tree.JSONLINE && format != tree.PARQUET { | ||
| return moerr.NewBadConfigf(param.Ctx, "the format '%s' is not supported", format) | ||
| } | ||
| param.Format = format | ||
|
Comment on lines
1796
to
1801
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ParsePath now allows '=' in the file component, but the existing path parsing tests don’t cover this new allowed character. Please add a unit test case that includes '=' in the file portion (e.g., an S3 key like "a=b/c.txt") to prevent regressions in the validation logic.