You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move the to_timestamp* functions to datafusion-functions #9291
Not sure what to do about references to to_timestamp function in test code such as
core/tests/parquet/row_group_pruning.rs
core/tests/parquet/page_pruning.rs
optimizer/simplify_expressions/simplify_exprs.rs
This seems mostly to be in tests however I'm unsure of the wisdom of adding a dependency to datafusion-functions in these modules (core/optimizer/etc)
The issue really isn't limited to to_timestamp functions - any tests in those crates that use functions that we move to the new crate will have the same issue.
Many of those simplify tests seem to be tests that certain functions get simplified rather than a unit test of the optimizer. Thus they make more sense to be in the core crate from my perspective.
What do you think @Omega359 ? I am sorry for the late response
The issue really isn't limited to to_timestamp functions - any tests in those crates that use functions that we move to the new crate will have the same issue.
Activity
Omega359 commentedon Feb 20, 2024
take
Omega359 commentedon Feb 21, 2024
Not sure what to do about references to to_timestamp function in test code such as
This seems mostly to be in tests however I'm unsure of the wisdom of adding a dependency to datafusion-functions in these modules (core/optimizer/etc)
The issue really isn't limited to to_timestamp functions - any tests in those crates that use functions that we move to the new crate will have the same issue.
alamb commentedon Feb 26, 2024
I think the core tests will be fine as they should already have access to the (core)
datafusioncrate and thus to the functions in questionI agree we should avoid this dependency if possible
One potential way to fix this dependency is to move most of the actual tests out of
optimizer/simplify_expressions/simplify_exprs.rsand intocore/tests/somewhere -- perhaps into https://github.com/apache/arrow-datafusion/blob/a9f0c7afe2ea3bb14bfcceedfcd33cfe4b954035/datafusion/core/tests/simplification.rs#L1-L0Many of those simplify tests seem to be tests that certain functions get simplified rather than a unit test of the optimizer. Thus they make more sense to be in the core crate from my perspective.
What do you think @Omega359 ? I am sorry for the late response
Omega359 commentedon Feb 27, 2024
Thanks @alamb, I'll look at moving those tests out to the core/tests/ area.