Skip to content

Commit f204af2

Browse files
feldera-botgz
authored andcommitted
[ci] apply automatic fixes
Signed-off-by: feldera-bot <feldera-bot@feldera.com> Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
1 parent 9f0fd6a commit f204af2

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

crates/adapters/src/adhoc/executor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use bytestring::ByteString;
1010
use datafusion::common::{DataFusionError, Result as DFResult};
1111
use datafusion::dataframe::DataFrame;
1212
use datafusion::execution::SendableRecordBatchStream;
13-
use datafusion::logical_expr::SortExpr;
1413
use datafusion::prelude::col;
1514
use feldera_storage::tokio::TOKIO;
1615
use feldera_types::query::MAX_WS_FRAME_SIZE;

openapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4768,7 +4768,8 @@
47684768
"text",
47694769
"json",
47704770
"parquet",
4771-
"arrow_ipc"
4771+
"arrow_ipc",
4772+
"hash"
47724773
]
47734774
},
47744775
"AdhocQueryArgs": {

python/feldera/rest/feldera_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -895,9 +895,7 @@ def query_as_text(
895895
if chunk:
896896
yield chunk.decode("utf-8")
897897

898-
def query_as_hash(
899-
self, pipeline_name: str, query: str
900-
) -> str:
898+
def query_as_hash(self, pipeline_name: str, query: str) -> str:
901899
"""
902900
Executes an ad-hoc query on the specified pipeline and returns a hash of the result.
903901
@@ -918,7 +916,6 @@ def query_as_hash(
918916
)
919917
return resp
920918

921-
922919
def query_as_parquet(self, pipeline_name: str, query: str, path: str):
923920
"""
924921
Executes an ad-hoc query on the specified pipeline and saves the result to a parquet file.

python/tests/test_shared_pipeline.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ def test_adhoc_query_hash(self):
9191
resp = TEST_CLIENT.query_as_hash(
9292
self.pipeline.name, "SELECT * FROM tbl ORDER BY id"
9393
)
94-
assert resp == "0B021466CA428474EF16F899D0F841D7338C168C063DA5DB43666D1AB3081558"
95-
94+
assert (
95+
resp == "0B021466CA428474EF16F899D0F841D7338C168C063DA5DB43666D1AB3081558"
96+
)
9697

9798
def test_adhoc_query_parquet(self):
9899
data = "1\n2\n"

0 commit comments

Comments
 (0)