feat: RecordBatch serialization (#26)

This commit is contained in:
Lei, Huang
2022-05-17 17:01:00 +08:00
committed by GitHub
parent 3d374cce68
commit bd4fe1f5bc
7 changed files with 177 additions and 57 deletions

View File

@@ -23,7 +23,6 @@ async fn test_sql_api() {
let res = client.get("/sql").send().await;
assert_eq!(res.status(), StatusCode::OK);
// TODO(dennis): deserialize to json response
let body = res.text().await;
assert_eq!(
body,
@@ -39,7 +38,7 @@ async fn test_sql_api() {
let body = res.text().await;
assert_eq!(
body,
r#"{"success":true,"output":{"Rows":[{"schema":{"fields":[{"name":"number","data_type":"UInt32","is_nullable":false,"metadata":{}}],"metadata":{}},"columns":[{"UInt32":[0,1,2,3,4,5,6,7,8,9]}]}]}}"#
r#"{"success":true,"output":{"Rows":[{"schema":{"fields":[{"name":"number","data_type":"UInt32","is_nullable":false,"metadata":{}}],"metadata":{}},"columns":[[0,1,2,3,4,5,6,7,8,9]]}]}}"#
);
}