Handle create page source for Druid segment on s3#14922
Handle create page source for Druid segment on s3#14922zhenxiao merged 1 commit intoprestodb:masterfrom
Conversation
There was a problem hiding this comment.
Is there anything else we need escaping in the uri? something like '?' and '='.
I'm thinking if we can use any existing '%' encoding function to do this.
There was a problem hiding this comment.
Changed to URLEncoder to process special chars in general.
There was a problem hiding this comment.
extract s3a, s3n, S2Schema and etc. as constants?
There was a problem hiding this comment.
Is it better to throw a PrestoException(DRUID_METADATA_ERROR`, ...)? also for line 144
mbasmanova
left a comment
There was a problem hiding this comment.
Would it be possible to add a test?
beinan
left a comment
There was a problem hiding this comment.
It looks good to me except a couple of minor issue. It would enable the scanning on s3 and gcs.
Nice contribution, thank you @jinyangli34 !
@zhenxiao what do you think?
There was a problem hiding this comment.
Any chance to switch by the enum you just defined -- DeepStorageType ?
There was a problem hiding this comment.
Any document or github issue we can link here rather than a piece of source code?
There was a problem hiding this comment.
I'm removing the link as current code looks self-explained after clean up. Let me know if you prefer a github issue link here.
There was a problem hiding this comment.
Nice work, I think we can just remove the link. Thanks!
zhenxiao
left a comment
There was a problem hiding this comment.
nice work, @jinyangli34
mostly good, only a few minor issues
There was a problem hiding this comment.
s/S3_ZIP/S3/g
zip is the file format, we just use S3 for storage type
There was a problem hiding this comment.
Updated enum variable name, while keeping the type name as defined from Druid.
There was a problem hiding this comment.
Unsupported segment filesystem
zhenxiao
left a comment
There was a problem hiding this comment.
LGTM
@jinyangli34 could you please merge the 3 commits into 1, and rerun the test?
e8ebd9c to
680a43f
Compare
|
@zhenxiao rebased commits and verified with segments on S3. |

Please make sure your submission complies with our Development, Formatting, and Commit Message guidelines.
Fill in the release notes towards the bottom of the PR description.
See Release Notes Guidelines for details.
To address: #14921