-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow return query response in columnar format #14677
Comments
Do you mean something like returning data in arrow format? That would be awesome. |
@gortiz that would be different, I would expect that to be a different parameter like encoding |
I don't get it. Could you describe the task further? Does it affect the broker and controller rest api? The GRPC direct access? The current REST format is something like: {
"resultTable": {
"dataSchema": {
"columnNames": [
"c1",
"c2"
],
"columnDataTypes": [
"INT",
"STRING"
]
},
"rows": [
[
208,
"a"
],
[
243,
"b"
],
[
279,
"c"
]
]
}
} Do you suggest to change it to something like: {
"resultTable": {
"dataSchema": {
"columnNames": [
"c1",
"c2"
],
"columnDataTypes": [
"INT",
"STRING"
]
},
"columns": [
[
208,
243,
279
],
[
"a",
"b",
"c"
]
]
}, ? That could be done with a query param, but we could also return the same data in arrow format by changing the |
Exactly as you mentioned. Arrow format is mostly for encoding support, which could be a different goal, but will definitely help for column API performance. |
It will be simpler for users who operate data on columnar manner without reassemble the data structure.
Could be a query option to turn it on/off.
The text was updated successfully, but these errors were encountered: