Repository navigation
Move ScalarValue tests alongside implementation, move from_slice to datafusion_core - #2914
Conversation
| ScalarValue::TimestampNanosecond(r, None) | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
these tests are moved, verbatim. The only change is that this line
use arrow::{array::*, datatypes::*};was removed at the direction of the rust compiler as it was no longer used
|
Benchmark runs are scheduled for baseline = fb2221c and contender = d8a2f58. d8a2f58 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes #2913
Rationale for this change
I am working on #2891 and it was not clear there were existing
ScalarValuetests because they were in a different module than their implementationImplementation: https://github.com/apache/arrow-datafusion/blob/fd64e6f2e5ca5ba8c33c431b75a3ba9441091970/datafusion/common/src/scalar.rs
Tests https://github.com/apache/arrow-datafusion/blob/85ca8be669dc1fbba4b2eefbf99fc2ed1546cc0c/datafusion/core/src/scalar.rs
🤯
What changes are included in this PR?
ScalarValuetests alongside implementationfrom_slicetodatafusion_core(as it is used in the ScalarValue implementation)Are there any user-facing changes?
from_sliceis now in thedatafusion_corecrate (used to be indatafusion_physical_exprcrate), but their is apub useso no existing code needs to be changed (they can still importfrom_slicefromdatafusion_physical_expr)