You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] nested/object query with raw or csv format inserts unexpected newlines #1572
Detected the same issue with csv format without nested: V1
POST http://localhost:9200/_plugins/_sql?format=csv
{
"query" : "select * from account where account_number = 70",
"legacy": 1
}
account_number,firstname,address,balance,gender,city,employer,state,age,email,lastname70,Deidre,685 School Lane,38172,F,Chestnut,Netplode,GA,33,[email protected],Thompson
V2
POST http://localhost:9200/_plugins/_sql?format=csv
{
"query" : "select * from account where account_number = 70"
}
account_number,firstname,address,balance,gender,city,employer,state,age,email,lastname
70,Deidre,
685 School Lane,
38172,F,Chestnut,Netplode,GA,
33,[email protected],Thompson
I've narrowed down that this bug is caused by the fact in legacy the header defines the content-type as text/plain; charset=UTF-8 while in the new engine the content-type is application/json; charset=UTF-8
Activity
acarbonetto commentedon Apr 24, 2023
Note: this might be related to errors in Dashboard processing
rawandcsvformat from the V2 engine (seems to work for the legacy engine).Yury-Fridlyand commentedon Apr 24, 2023
Detected the same issue with
csvformat withoutnested:V1
V2
matthewryanwells commentedon Jun 20, 2023
I've narrowed down that this bug is caused by the fact in legacy the header defines the content-type as
text/plain; charset=UTF-8while in the new engine the content-type isapplication/json; charset=UTF-8