Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Jan 4, 2024

What changes were proposed in this pull request?

Refactor data_type_ops tests: deduplicate the OpsTestBase

Why are the changes needed?

make OpsTestBase reusable and reuse it in the parity tests

Does this PR introduce any user-facing change?

no

How was this patch tested?

ci

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

no

init
@zhengruifeng
Copy link
Contributor Author

thanks @HyukjinKwon for the reviews
merged to master

@zhengruifeng zhengruifeng deleted the ps_test_data_type_ops branch January 5, 2024 01:04
@zhengruifeng
Copy link
Contributor Author

sorry @HyukjinKwon , I just find that after this PR, the changed parity tests are run on non-connect mode, let me revert it first

zhengruifeng added a commit that referenced this pull request Jan 5, 2024
### What changes were proposed in this pull request?
revert #44592 which happened to disable the parity tests

they should be run on connect mode, but actually run on vanilla mode

Closes #44605 from zhengruifeng/revert_46593.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
vinodkc pushed a commit to vinodkc/spark that referenced this pull request Jan 5, 2024
### What changes were proposed in this pull request?
Refactor `data_type_ops` tests: deduplicate the `OpsTestBase`

### Why are the changes needed?
make `OpsTestBase` reusable and reuse it in the parity tests

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

### How was this patch tested?
ci

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

Closes apache#44592 from zhengruifeng/ps_test_data_type_ops.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
vinodkc pushed a commit to vinodkc/spark that referenced this pull request Jan 5, 2024
### What changes were proposed in this pull request?
revert apache#44592 which happened to disable the parity tests

they should be run on connect mode, but actually run on vanilla mode

Closes apache#44605 from zhengruifeng/revert_46593.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
@HyukjinKwon
Copy link
Member

sure

HyukjinKwon pushed a commit that referenced this pull request Jan 7, 2024
### What changes were proposed in this pull request?
1, check the testing mode:

- `test_assert_vanilla_mode` in `ReusedPySparkTestCase`
- `test_assert_remote_mode` in `ReusedConnectTestCase`

use different function names in case a test suite inherit them both

2, fix the incorrect testing mode introduced in #44196

### Why are the changes needed?
incorrect usage of `PandasOnSparkTestCase` (subclass of `ReusedPySparkTestCase`) in parity tests cause test with vanilla Spark Session:
#44196
#44592

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

### How was this patch tested?
ci, added UT

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

Closes #44611 from zhengruifeng/py_testing_mode.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
HyukjinKwon pushed a commit that referenced this pull request Jan 10, 2024
### What changes were proposed in this pull request?
Refactor `data_type_ops` tests again (the previous pr #44592 has been reverted)

### Why are the changes needed?
make `OpsTestBase` reusable and reuse it in the parity tests

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

### How was this patch tested?
ci

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

Closes #44637 from zhengruifeng/ps_test_rere_data_type_ops_again.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants