TechWizard9999 opened a new issue, #411:
URL: https://github.com/apache/datafusion-spark/issues/411
### Describe the bug
Spark splits base64 output into 76-character lines joined by \r\n by default
(spark.sql.chunkBase64String.enabled is true since 3.5.2, using
Base64.getMimeEncoder()). datafusion-spark returns one line.
### To Reproduce
```sql
SELECT base64(repeat('a', 60));
```
datafusion-spark returns 80 characters on one line. Spark 4.2.0 and 3.5.9
return 76 characters, then \r\n, then YWFh.
### Expected behavior
Match Spark: split the output into 76-character lines by default, with a
config option to turn it off like Spark has.
### Additional context
Found in the review of #400. Inputs of 57 bytes or less are not affected.
--
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]