ueshin opened a new pull request, #40800:
URL: https://github.com/apache/spark/pull/40800
### What changes were proposed in this pull request?
Implements eager evaluation for `DataFrame.__repr__` and
`DataFrame._repr_html_`.
### Why are the changes needed?
When `spark.sql.repl.eagerEval.enabled` is `True`, DataFrames should eagerly
evaluate and show the results.
```py
>>> spark.conf.set('spark.sql.repl.eagerEval.enabled', True)
>>> spark.range(3)
+---+
| id|
+---+
| 0|
| 1|
| 2|
+---+
```
### Does this PR introduce _any_ user-facing change?
The eager evaluation will be available.
### How was this patch tested?
Enabled the related test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]