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

[MINOR][PYTHON][TESTS] Reduce the python worker error log of test_toDF_with_schema_string #48388

Closed
wants to merge 1 commit into from

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Reduce the python worker error log of test_toDF_with_schema_string

Why are the changes needed?

When I run the test locally

python/run-tests -k --python-executables python3 --testnames 'pyspark.sql.tests.test_dataframe'

Two assertions in test_toDF_with_schema_string generate too many python worker error logs (~1k lines), which easily exceed the limitation of terminal and make it hard to debug.

So I want to reduce the number of python workers in the two assertions.

Does this PR introduce any user-facing change?

no, test only

How was this patch tested?

manually test, the logs will be reduced to ~200 lines

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

no

@HyukjinKwon
Copy link
Member

Merged to master.

@zhengruifeng zhengruifeng deleted the test_to_df_error branch October 10, 2024 00:32
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
…DF_with_schema_string`

### What changes were proposed in this pull request?
Reduce the python worker error log of `test_toDF_with_schema_string`

### Why are the changes needed?
When I run the test locally
```python
python/run-tests -k --python-executables python3 --testnames 'pyspark.sql.tests.test_dataframe'
```

Two assertions in `test_toDF_with_schema_string` generate too many python worker error logs (~1k lines), which easily exceed the limitation of terminal and make it hard to debug.

So I want to reduce the number of python workers in the two assertions.

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

### How was this patch tested?
manually test, the logs will be reduced to ~200 lines

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

Closes apache#48388 from zhengruifeng/test_to_df_error.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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