alamb opened a new pull request, #3680:
URL: https://github.com/apache/arrow-datafusion/pull/3680
# Which issue does this PR close?
N/A
# Rationale for this change
I want to make:
1. Writing tests for datafusion easier
2. Reading datafusion code easier
I find certain tests hard to read because it is hard to figure out the
actual value being used from the ceremony needed to create a ScalarValue.
# What changes are included in this PR?
1. Changes a bunch of `lit(ScalarValue::XXX(Some(yyy)))` into `lit(yyy)`
2. Makes it possible to write
```rust
ScalarValue::Utf8(Some("a".to_string())
```
as
```rust
ScalarValue::new_utf8("a")
```
# Are there any user-facing changes?
1. Added a new `ScalarValue::new_utf8`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]