2010YOUY01 opened a new issue, #17218: URL: https://github.com/apache/datafusion/issues/17218
### Is your feature request related to a problem or challenge? If a newline `\n` is included in the error message, and the error is created with the macro like `exec_datafusion_err!(...)`, this newline can not be properly displayed. Fixing this can help produce more user-friendly (and eye-friendly) error messages. Reproducer: 1. Include a newline inside error message at https://github.com/apache/datafusion/blob/main/datafusion/physical-plan/src/spill/mod.rs#L307 2. run ```sh ulimit -n 256 cargo test --test fuzz ``` And the newline will be displayed as `\n` literal: ```sh ---- fuzz_cases::spilling_fuzz_in_memory_constrained_env::test_aggregate_with_high_cardinality_with_limited_memory_and_different_sizes_of_record_batch_and_changing_memory_reservation stdout ---- Error: Execution("(Hint: you may increase the file descriptor limit with shell command 'ulimit -n 4096')\nFailed to create partition file at \"/var/folders/5p/xc3sx0ds1496j0nxb08lmqw40000gn/T/.tmpyGYV81/.tmptuoheV\": Os { code: 24, kind: Uncategorized, message: \"Too many open files\" }") ``` ### Describe the solution you'd like _No response_ ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org