Skip to content

Commit

Permalink
chore: cleanup todos that should be panic
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Apr 16, 2024
1 parent d123791 commit b101c37
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/catalog/src/kvbackend/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,32 +506,32 @@ mod tests {
}

async fn range(&self, _req: RangeRequest) -> Result<RangeResponse, Self::Error> {
todo!()
unimplemented!()
}

async fn batch_put(&self, _req: BatchPutRequest) -> Result<BatchPutResponse, Self::Error> {
todo!()
unimplemented!()
}

async fn compare_and_put(
&self,
_req: CompareAndPutRequest,
) -> Result<CompareAndPutResponse, Self::Error> {
todo!()
unimplemented!()
}

async fn delete_range(
&self,
_req: DeleteRangeRequest,
) -> Result<DeleteRangeResponse, Self::Error> {
todo!()
unimplemented!()
}

async fn batch_delete(
&self,
_req: BatchDeleteRequest,
) -> Result<BatchDeleteResponse, Self::Error> {
todo!()
unimplemented!()
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/script/src/python/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,13 @@ def test(**params) -> vector[i64]:
("a".to_string(), "30".to_string()),
("b".to_string(), "12".to_string()),
]);
let _output = script
let output = script
.execute(params, EvalContext::default())
.await
.unwrap();
let res = match _output.data {
let res = match output.data {
OutputData::RecordBatches(s) => s,
_ => todo!(),
data => unreachable!("data: {data:?}"),
};
let rb = res.iter().next().expect("One and only one recordbatch");
assert_eq!(rb.column(0).len(), 1);
Expand All @@ -476,13 +476,13 @@ def test(number) -> vector[u32]:
.compile(script, CompileContext::default())
.await
.unwrap();
let _output = script
let output = script
.execute(HashMap::new(), EvalContext::default())
.await
.unwrap();
let res = common_recordbatch::util::collect_batches(match _output.data {
let res = common_recordbatch::util::collect_batches(match output.data {
OutputData::Stream(s) => s,
_ => todo!(),
data => unreachable!("data: {data:?}"),
})
.await
.unwrap();
Expand Down

0 comments on commit b101c37

Please sign in to comment.