Skip to content

[SPARK-52428] Fix show() to print table directly instead of double-wrapping#45

Open
rafafrdz wants to merge 1 commit intoapache:masterfrom
rafafrdz:fix-show-and-lambda
Open

[SPARK-52428] Fix show() to print table directly instead of double-wrapping#45
rafafrdz wants to merge 1 commit intoapache:masterfrom
rafafrdz:fix-show-and-lambda

Conversation

@rafafrdz
Copy link
Copy Markdown

Summary

  • Fix `DataFrame::show()` to extract the formatted string from `ShowString` and print it directly
  • Previously the result was wrapped in another Arrow table, producing a table-inside-a-table

Before:
```
+----------------+
| show_string |
+----------------+
| +-----+------+ |
| |score|status| |
| +-----+------+ |
| |20 |active| |
| +-----+------+ |
+----------------+
```

After:
```
+-----+------+
|score|status|
+-----+------+
|20 |active|
+-----+------+
```

Test plan

  • `cargo build` passes
  • `cargo fmt -- --check` passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant