We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug If you do a window operation on only a constant string then we crash.
Steps/Code to reproduce bug
spark = SparkSession.builder \ .appName('test').getOrCreate() simpleData = (("James", "Sales", 3000), \ ("Michael", "Sales", 4600), \ ("Robert", "Sales", 4100), \ ("Maria", "Finance", 3000), \ ("James", "Sales", 3000), \ ("Scott", "Finance", 3300), \ ("Jen", "Finance", 3900), \ ("Jeff", "Marketing", 3000), \ ("Kumar", "Marketing", 2000),\ ("BAD", "Marketing", None),\ ("Saif", "Sales", 4100) \ ) columns= ["employee_name", "department", "salary"] df = spark.createDataFrame(data = simpleData, schema = columns) windowSpec = Window.partitionBy("department").orderBy(lit('')) df.withColumn("row_num", row_number().over(windowSpec)).show(truncate=False)
Expected behavior It produces a similar response to what spark does (which honestly results in non-reproducible results, but what ever)
The text was updated successfully, but these errors were encountered:
FYI @willb
Sorry, something went wrong.
Update submodule cudf to 5f6d9d41c4a685632eb2dc8f8f1b163d18d2ba30 (NV…
f701282
…IDIA#880) Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com> Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>
revans2
Successfully merging a pull request may close this issue.
Describe the bug
If you do a window operation on only a constant string then we crash.
Steps/Code to reproduce bug
Expected behavior
It produces a similar response to what spark does (which honestly results in non-reproducible results, but what ever)
The text was updated successfully, but these errors were encountered: