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

[SPARK-42307][SQL][BUILD][DOCS] Adding in a better name for _LEGACY_ERROR_TEMP_2232 #44337

Closed
wants to merge 8 commits into from

Conversation

hannahkamundson
Copy link
Contributor

@hannahkamundson hannahkamundson commented Dec 13, 2023

What changes were proposed in this pull request?

This adds a better name for the error type _LEGACY_ERROR_TEMP_2232 and updates the messages for it.

Why are the changes needed?

All that was changed was the

  • name for _LEGACY_ERROR_TEMP_2232 to NULL_ROW_VALUE
  • sqlState for _LEGACY_ERROR_TEMP_2232
  • message for _LEGACY_ERROR_TEMP_2232

Does this PR introduce any user-facing change?

Yes.

  • It updates the sqlState for _LEGACY_ERROR_TEMP_2232 to 2200E whereas it was previously empty.
  • It updates the message for _LEGACY_ERROR_TEMP_2232 from Value at index <index> is null. to Row value at the position <index> is NULL.

How was this patch tested?

Unit tests

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label Dec 13, 2023
@hannahkamundson hannahkamundson force-pushed the SPARK-42307 branch 2 times, most recently from 4ef59d2 to 3ff7198 Compare December 13, 2023 20:45
@hannahkamundson hannahkamundson changed the title [WIP][SPARK-42307][SQL] Adding in a better name for _LEGACY_ERROR_TEMP_2232 [SPARK-42307][SQL] Adding in a better name for _LEGACY_ERROR_TEMP_2232 Dec 13, 2023
@MaxGekk
Copy link
Member

MaxGekk commented Dec 14, 2023

@hannahkamundson Could you add a test for the error class, please.

@github-actions github-actions bot added the BUILD label Dec 18, 2023
@hannahkamundson hannahkamundson changed the title [SPARK-42307][SQL] Adding in a better name for _LEGACY_ERROR_TEMP_2232 [SPARK-42307][SQL][BUILD][DOCS] Adding in a better name for _LEGACY_ERROR_TEMP_2232 Dec 19, 2023
sql/api/pom.xml Outdated Show resolved Hide resolved
@hannahkamundson
Copy link
Contributor Author

@MaxGekk Let me know what you think!

@hannahkamundson
Copy link
Contributor Author

@MaxGekk Any thoughts?

Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hannahkamundson Could you rebase on the recent master.


<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.binary.version}</artifactId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, avoid the dependency.

import org.apache.spark.sql.catalyst.expressions.GenericRow

class RowSuite extends SparkFunSuite {
test("Row handles null value") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move it to some existing test suite?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sql/api doesn't have any other tests. This was adding the first one.

Do you have a different package you want me to move it to?

Additionally, I think the dependency above is required in test because SparkFunSuite lives in core. I am not putting a dependency for the main code on core, just the test code. I'm fine changing that, but would need more guidance as to where I should put the test

@hannahkamundson
Copy link
Contributor Author

@MaxGekk Rebased on master. I can make the changes above. I just need a little more guidance :)

@hannahkamundson hannahkamundson deleted the SPARK-42307 branch January 21, 2024 21:00
@hannahkamundson hannahkamundson restored the SPARK-42307 branch January 21, 2024 21:00
Copy link

github-actions bot commented May 5, 2024

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label May 5, 2024
@github-actions github-actions bot closed this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants