Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Conversation

@pdelewski
Copy link
Contributor

@pdelewski pdelewski commented Jul 31, 2025

This PR introduces an abstract logical FromUnixTimeFunction and FromUnixTimeFunction64mili functions to be used at the parsing level, and adds a extend DateTimeFunction transformation that lowers it to a backend-specific implementation.

@pdelewski pdelewski force-pushed the logical-fromunit-func branch from 61214ea to 5326b4d Compare July 31, 2025 15:04
@pdelewski
Copy link
Contributor Author

/run-it

@pdelewski
Copy link
Contributor Author

/run-it

@pdelewski
Copy link
Contributor Author

/run-it

1 similar comment
@pdelewski
Copy link
Contributor Author

/run-it

@pdelewski pdelewski force-pushed the logical-fromunit-func branch from 6048aba to 09ea693 Compare August 4, 2025 11:45
@pdelewski
Copy link
Contributor Author

/run-it

@pdelewski pdelewski marked this pull request as ready for review August 4, 2025 12:08
@pdelewski pdelewski requested a review from a team as a code owner August 4, 2025 12:08
Copy link
Member

@mieciu mieciu left a comment

Choose a reason for hiding this comment

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

minor catches, overall - good job!

@pdelewski
Copy link
Contributor Author

/run-it

@pdelewski pdelewski requested a review from mieciu August 4, 2025 14:19
if col, ok := model.ExtractColRef(f.Args[0]); ok && table.IsInt(col.ColumnName) {
// adds fromUnixTimestamp64Milli
return model.NewFunction("toTimezone", model.NewFunction("fromUnixTimestamp64Milli", f.Args[0]), f.Args[1])
return model.NewFunction("toTimezone", model.NewFunction(model.FromUnixTimeFunction64mili, f.Args[0]), f.Args[1])
Copy link
Member

Choose a reason for hiding this comment

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

"toTimezone" last one left ! :)

@pdelewski pdelewski force-pushed the logical-fromunit-func branch from 89ca35d to c50826e Compare August 5, 2025 08:27
@pdelewski pdelewski force-pushed the logical-fromunit-func branch from c50826e to b72bde0 Compare August 5, 2025 08:35
@pdelewski
Copy link
Contributor Author

/run-it

@pdelewski pdelewski added this pull request to the merge queue Aug 5, 2025
Merged via the queue into main with commit 697ce8c Aug 5, 2025
7 checks passed
@pdelewski pdelewski deleted the logical-fromunit-func branch August 5, 2025 08:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants