Serge Rielau created SPARK-50561:
------------------------------------
Summary: uniform() causes internal error with floating point seed
Key: SPARK-50561
URL: https://issues.apache.org/jira/browse/SPARK-50561
Project: Spark
Issue Type: Bug
Components: Spark Core
Affects Versions: 4.0.0
Reporter: Serge Rielau
SELECT uniform(10::float, -10::double, 1.0::float) FROM VALUES(1), (2), (3),
(4), (5), (6), (7);
[[INTERNAL_ERROR|https://docs.databricks.com/error-messages/error-classes.html#internal_error]]
The Spark SQL phase analysis failed with an internal error. You hit a bug in
Spark or the Spark plugins you use. Please, report this bug to the
corresponding communities or vendors, and provide the full stack trace.
SQLSTATE: XX000
Presumable were missing a check to disallow float?
generally it is a question whether we should be more aggressive in casting.
E.g. we do support substr('hello', 1.0, 1.0).
thsi applies to allowing DECIMAL arguments for the range as well as simply
casting the seed to an integral number.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]