Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VL] Casting integer to binary type produces inconsistent result with Spark #5073

Open
PHILO-HE opened this issue Mar 21, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working triage

Comments

@PHILO-HE
Copy link
Contributor

Backend

VL (Velox)

Bug description

SELECT a, cast(a as binary) from tbl;

Spark result:

+---+-------------+
|  a|            a|
+---+-------------+
| 10|[00 00 00 0A]|
|  0|[00 00 00 00]|
|  3|[00 00 00 03]|
|  2|[00 00 00 02]|
|  2|[00 00 00 02]|
|  0|[00 00 00 00]|
+---+-------------+

Gluten result:

+---+-------+
|  a|      a|
+---+-------+
| 10|[31 30]|
|  0|   [30]|
|  3|   [33]|
|  2|   [32]|
|  2|   [32]|
|  0|   [30]|
+---+-------+

Spark version

None

Spark configurations

No response

System information

No response

Relevant logs

No response

@PHILO-HE PHILO-HE added bug Something isn't working triage labels Mar 21, 2024
@PHILO-HE
Copy link
Contributor Author

PHILO-HE commented Mar 21, 2024

@rui-mo, could you take a look? Thanks!
We need confirm other numeric types.

@rui-mo rui-mo self-assigned this Apr 15, 2024
@rui-mo
Copy link
Contributor

rui-mo commented May 15, 2024

Fixing this issue with facebookincubator/velox#9819.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants