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
OSS Delta Sharing Server: Adds api to accept cdf query #135
Conversation
Hi @linzhou-db , could you have a standalone PR on https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md with the new API's specification? It's better to agree on specification before adding its implementation on the server IMO. |
sg, will do |
Sent out #137 |
server/src/main/scala/io/delta/sharing/server/DeltaSharingService.scala
Outdated
Show resolved
Hide resolved
server/src/main/scala/io/delta/standalone/internal/DeltaErrors.scala
Outdated
Show resolved
Hide resolved
} | ||
if (startingVersion.isDefined) { | ||
try { | ||
startingVersion.get.toLong |
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.
Should we validate timestamp?
If it gets validate elsewhere, perhaps add a comment.
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.
Added a comment, same as the code in our repo, it's validated in the cdc reader.
) | ||
} | ||
|
||
def noStartVersionForCDF: Throwable = { |
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.
Should we call it noStartParamForCDF?
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.
I more prefer to keep it the same as DeltaErrors in our code base.
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.
sg.
@zhuansunxt you still want to take a look? |
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.
LGTM
Why is the concept of table changes coupled with the CDF ? Isn't it possible to extract the info of the difference between a version and another by only knowing which files were added and which were removed ? The API can return this metadata which should be sufficient for the client to use to replicate the changes, correct ? |
Hi Basem,
CDF is short for Change Data Feed, it IS the concept of table changes.
Technically yes, while CDF is a well developed, organized, and well maintained feature for this purpose, so good to just use it. |
OSS Delta Sharing Server: Adds api to accept cdf query
DeltaSharedTable.queryCDF
and return not implemented exception