Github user wangyum commented on the issue:
https://github.com/apache/spark/pull/18986
@gatorsmile Seems cast to `double` is correct.
```
hive> create table spark_21646(c1 string, c2 string);
hive> insert into spark_21646
values('922337203685477580719223372036854775807192233720368547758071', 'a');
hive> insert into spark_21646 values('21474836471', 'b');
hive> insert into spark_21646 values('10', 'c');
hive> insert into spark_21646 values('0.125', 'd');
hive> insert into spark_21646 values('1.25', 'd');
hive> select * from spark_21646 where c1 > 0;
922337203685477580719223372036854775807192233720368547758071 a
0.125 d
21474836471 b
1.25 d
10 c
```
```
spark-sql> select * from spark_21646 where c1 > 0;
1.25 d
10 c
spark-sql> select * from spark_21646 where c1 > 0L;
21474836471 b
1.25 d
10 c
spark-sql> select * from spark_21646 where c1 > 0D;
922337203685477580719223372036854775807192233720368547758071 a
0.125 d
21474836471 b
1.25 d
10 c
spark-sql>
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]