Skip to content

Pushdown uuid functions#173

Open
sfc-gh-abozkurt wants to merge 1 commit into
mainfrom
aykut/pushdown-uuid-funcs
Open

Pushdown uuid functions#173
sfc-gh-abozkurt wants to merge 1 commit into
mainfrom
aykut/pushdown-uuid-funcs

Conversation

@sfc-gh-abozkurt
Copy link
Copy Markdown
Collaborator

@sfc-gh-abozkurt sfc-gh-abozkurt commented Jan 19, 2026

Closes #151.

NOTE: uuid_extract_timestamp returns timestamp only for uuid v1 in pg17 but it returns timestamp for v1 and v7 above pg18. This is why we pass postgres version num to duckdb function.

Co-authored-by: manojks1999 9743manoj@gmail.com

@sfc-gh-abozkurt sfc-gh-abozkurt force-pushed the aykut/pushdown-uuid-funcs branch 8 times, most recently from 969d1a5 to de3bdc5 Compare January 21, 2026 09:20
@sfc-gh-abozkurt sfc-gh-abozkurt force-pushed the aykut/pushdown-uuid-funcs branch 3 times, most recently from b35c8d4 to d94b00d Compare March 4, 2026 00:44
// Extract individual bytes from the UUID (bytes 0-7 are in upper)
// We already have unsigned_upper computed above
uint8_t data[8];
for (int i = 0; i < 8; i++) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this code work? i is already used in the outer loop

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works as it shadows the outer but I ll change it, it looks fishy.

Signed-off-by: Aykut Bozkurt <aykut.bozkurt@snowflake.com>
@sfc-gh-abozkurt sfc-gh-abozkurt force-pushed the aykut/pushdown-uuid-funcs branch from d94b00d to bee896e Compare April 1, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants