Skip to content

Conversation

@dolfinus
Copy link
Contributor

@dolfinus dolfinus commented Apr 28, 2025

Description

Previously OpenLineage run.id was generated as UUIDv3(hash(queryId)). Now it is generated as UUIDv7(queryCreateTime, hash(queryId)), using UUIDUtils.generateStaticUUID method.

Additional context and related issues

According to OpenLineage documentation, it is recommended to use UUID v7 for run.id values.
This also makes values more compatible with B-Tree indexes and allows using internal timestamp as a partition column.

Fixes #25534

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(X) Release notes are required, with the following suggested text:

## OpenLineage
* Use UUIDv7 for OpenLineage `runId` ({issue}`25534`)

@cla-bot cla-bot bot added the cla-signed label Apr 28, 2025
@dolfinus dolfinus force-pushed the improvement/openlineage-uuid7 branch 3 times, most recently from 7469d78 to e5d1cc9 Compare April 28, 2025 13:15
@dolfinus dolfinus marked this pull request as ready for review April 28, 2025 13:38
@dolfinus dolfinus force-pushed the improvement/openlineage-uuid7 branch from e5d1cc9 to b78442f Compare April 28, 2025 15:39
@dolfinus dolfinus force-pushed the improvement/openlineage-uuid7 branch from b78442f to 4692c35 Compare April 29, 2025 16:06
@github-actions github-actions bot added the docs label Apr 29, 2025
@dolfinus dolfinus force-pushed the improvement/openlineage-uuid7 branch from 4692c35 to 0b3328d Compare May 14, 2025 09:42
@dolfinus dolfinus requested review from ebyhr and mgorsk1 and removed request for ebyhr May 14, 2025 09:52
@dolfinus dolfinus force-pushed the improvement/openlineage-uuid7 branch from 0b3328d to fedda26 Compare May 19, 2025 14:55
@mgorsk1
Copy link
Contributor

mgorsk1 commented May 19, 2025

lgtm 🙏🏻

@dolfinus dolfinus force-pushed the improvement/openlineage-uuid7 branch 3 times, most recently from 871a9a6 to 01df110 Compare May 20, 2025 07:37
@dolfinus
Copy link
Contributor Author

@wendigo could you please take a look?

@dolfinus dolfinus requested a review from wendigo May 30, 2025 08:45
@dolfinus dolfinus force-pushed the improvement/openlineage-uuid7 branch from 01df110 to b9528b8 Compare June 4, 2025 18:28
@dolfinus
Copy link
Contributor Author

Could someone take a look? This is important change to make integration compatible with some OpenLineage backends

@dolfinus dolfinus force-pushed the improvement/openlineage-uuid7 branch from b9528b8 to 049f89d Compare June 24, 2025 08:41
@ebyhr ebyhr merged commit 8ea730c into trinodb:master Jun 25, 2025
18 checks passed
@github-actions github-actions bot added this to the 477 milestone Jun 25, 2025
@dolfinus dolfinus deleted the improvement/openlineage-uuid7 branch June 25, 2025 05:58
@dolfinus
Copy link
Contributor Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

[Enhancement] Use UUIDv7 for QueryId

3 participants