No idea. Follow the issue and you will see when it's merged in which version it goes.
I'd say that I don't see anything critical here as using pretty is only to help humans to read this content. I agree that's a bug but why do you absolutely need it?
You can always write your own application which calls elasticsearch endpoint and rewrite whatever you need to whatever format.
I'm curious about what you are doing though.
A client should never read a JSON content. Are you providing something like an API to your users?
And why are you using SQL instead of the _search endpoint?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.