Add delta history metadata table#15556
Conversation
1e50935 to
ec53b61
Compare
ec53b61 to
150865f
Compare
There was a problem hiding this comment.
The content of this class has been copied with small adaptations from trino-iceberg.
I'd be inclined to move the class in trino-spi , but I'm missing a builder class for pages collection.
150865f to
5a43b14
Compare
There was a problem hiding this comment.
Although this information is not currently used in Trino, there is some extra info that could be added here:
- operationMetrics
- userMetadata
- engineInfo
Also operationParameters seems to be a bit more complex than only a map of `<string, string> entries.
There was a problem hiding this comment.
Why the capital B Boolean? If it may not be present, use Optional<Boolean>
5a43b14 to
9d596c6
Compare
9d596c6 to
4993652
Compare
5a2a8ab to
bbe9c15
Compare
ebyhr
left a comment
There was a problem hiding this comment.
Could you update the docs and add a product test?
25f3552 to
3dedaa5
Compare
There was a problem hiding this comment.
Probably job (same as notebook ) is not relevant in the context of Trino.
There was a problem hiding this comment.
Let's remove this column. We can add it later if needed.
c1e8a3c to
95299e2
Compare
I think my comment on the schema is something we can do as follow up |
|
Rebasing on |
b5189d1 to
7e07120
Compare
|
Rebasing on |
7e07120 to
a6ae7a7
Compare
There was a problem hiding this comment.
Similarly to what @krvikash is working on for Iceberg, we should avoid materializing all the entries here and do a streaming approach instead.
There was a problem hiding this comment.
We could do this eventually as a follow-up - in case it is needed.
There was a problem hiding this comment.
Could be follow up but being able to push down a predicate on WHERE version > x seems pretty helpful.
|
/test-with-secrets sha=a6ae7a7ef5cb89e17fc24f955924f60c3531cfbb |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4143883144 |
|
https://github.com/trinodb/trino/pull/15556/checks?check_run_id=11257287142
I don't know what happened here. @ebyhr could you please run the build again (to be on the safe side) ? |
|
/test-with-secrets sha=a6ae7a7ef5cb89e17fc24f955924f60c3531cfbb |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4158604825 |
The transaction log files can be written by query engines (Trino included at the time of this writing) which do not fill this property
Previously this property was being serialized by using `blindAppend` name.
a6ae7a7 to
96c8002
Compare
|
/test-with-secrets sha=96c80020b151ae66b2c05bd2d64779aeb7b27bf0 |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4162331409 |
96c8002 to
2f05ab6
Compare
Description
Provide the ability to query the history of changes performed on a Delta Lake table.
The documentation from https://docs.databricks.com/delta/history.html
DESCRIBE HISTORYcommand was used as reference.Same as in case of Iceberg tables, the history content can be retrieved by doing the query:
Fixes #15683
Additional context and related issues
Release notes
(x) Release notes are required, with the following suggested text: