-
Notifications
You must be signed in to change notification settings - Fork 57
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
Re-merge "Add chunk offset to file id key to make each chunk have a unique key" from pull 825 #865
Conversation
165b395
to
3a2ab2b
Compare
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.
Let's hold-off the merge until the server side change is in prod, do you know which release it will in?
It will be in 8.41. What's the risk if we merge now? False alarms in test environments? |
3a2ab2b
to
6707e0d
Compare
The plan is we'd merge this and enable server side detection fix starting from this version. PTAL. |
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.
Please make sure the server side change is enabled before this change is released, thanks!
f1262aa
to
e1f2073
Compare
e1f2073
to
17de48f
Compare
String filePath, long chunkStartOffset, Map<String, String> metadata) { | ||
// We insert the filename in the file itself as metadata so that streams can work on replicated | ||
// mixed tables. For a more detailed discussion on the topic see SNOW-561447 and | ||
// http://go/streams-on-replicated-mixed-tables |
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.
nit: pl add the other golink here too from line 133 in old code
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.
Done.
: Constants.PRIMARY_FILE_ID_KEY, | ||
StreamingIngestUtils.getShortname(filePath)); | ||
} else { | ||
String shortName = StreamingIngestUtils.getShortname(filePath); |
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.
lets also assert / validate that enableIcebergStreaming is false when we're in the else path?
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.
Done.
@@ -89,6 +91,7 @@ public void setupSchema(List<ColumnMetadata> columns) { | |||
if (!clientBufferParameters.isEnableIcebergStreaming()) { | |||
metadata.put("sfVer", "1,1"); | |||
} | |||
metadata.put(Constants.SDK_VERSION_KEY, RequestBuilder.DEFAULT_VERSION); |
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.
nice, Alec and I had discussed doing precisely this just yesterday!
We're going to have multiple SDK languages in a few months, should we have a slightly more verbose key-value pair here, such as:
userAgent=RequestBuilder.USER_AGENT ?
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.
User-Agent is a very HTTP-ish thing, we could name the key createdBy instead.
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.
This current key-value is what XP expects. Let's iterate on it later?
a77c300
to
6dcad1e
Compare
d6a4513
to
52b1335
Compare
Add chunk offset to file id key to make each chunk have a unique key from #825
…ve a uni… (#848)"
This reverts commit 0930648.