Skip to content

[SPARK-43589][SQL][3.3] Fix cannotBroadcastTableOverMaxTableBytesError to use bytesToString#41234

Closed
dongjoon-hyun wants to merge 1 commit intoapache:branch-3.3from
dongjoon-hyun:SPARK-43589-3.3
Closed

[SPARK-43589][SQL][3.3] Fix cannotBroadcastTableOverMaxTableBytesError to use bytesToString#41234
dongjoon-hyun wants to merge 1 commit intoapache:branch-3.3from
dongjoon-hyun:SPARK-43589-3.3

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented May 19, 2023

What changes were proposed in this pull request?

This is a logical backporting of #41232

This PR aims to fix cannotBroadcastTableOverMaxTableBytesError to use bytesToString instead of shift operations.

Why are the changes needed?

To avoid user confusion by giving more accurate values. For example, maxBroadcastTableBytes is 1GB and dataSize is 2GB - 1 byte.

BEFORE

Cannot broadcast the table that is larger than 1GB: 1 GB.

AFTER

Cannot broadcast the table that is larger than 1024.0 MiB: 2048.0 MiB.

Does this PR introduce any user-facing change?

Yes, but only error message.

How was this patch tested?

Pass the CIs with newly added test case.

@github-actions github-actions bot added the SQL label May 19, 2023
@dongjoon-hyun
Copy link
Member Author

Thank you again, @LuciferYang ! Merged to branch-3.3.

dongjoon-hyun added a commit that referenced this pull request May 19, 2023
…or` to use `bytesToString`

### What changes were proposed in this pull request?

This is a logical backporting of #41232

This PR aims to fix `cannotBroadcastTableOverMaxTableBytesError` to use `bytesToString` instead of shift operations.

### Why are the changes needed?

To avoid user confusion by giving more accurate values. For example, `maxBroadcastTableBytes` is 1GB and `dataSize` is `2GB - 1 byte`.

**BEFORE**
```
Cannot broadcast the table that is larger than 1GB: 1 GB.
```

**AFTER**
```
Cannot broadcast the table that is larger than 1024.0 MiB: 2048.0 MiB.
```

### Does this PR introduce _any_ user-facing change?

Yes, but only error message.

### How was this patch tested?

Pass the CIs with newly added test case.

Closes #41234 from dongjoon-hyun/SPARK-43589-3.3.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun dongjoon-hyun deleted the SPARK-43589-3.3 branch May 19, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants