timsaucer opened a new pull request, #1319:
URL: https://github.com/apache/datafusion-python/pull/1319
# Which issue does this PR close?
None
# Rationale for this change
An early version of the `lit()` code used conversion of pyarrow scalars into
python objects and then using the bare python types to determine what kind of
scalar value to create. We can use the pyarrow scalar objects directly in our
call to `pa.array()` instead and get lossless conversion.
# What changes are included in this PR?
- Do not convert to python object for `lit()`
- Adds unit test.
# Are there any user-facing changes?
No
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]