Skip to content

Commit

Permalink
chore(query): skip empty block for udf script (#16182)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang2014 authored Aug 5, 2024
1 parent c3047a6 commit d462ca5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,13 @@ impl TransformUdfScript {
impl Transform for TransformUdfScript {
const NAME: &'static str = "UDFScriptTransform";

const SKIP_EMPTY_DATA_BLOCK: bool = true;

fn transform(&mut self, mut data_block: DataBlock) -> Result<DataBlock> {
if data_block.is_empty() {
return Ok(data_block);
}

let index = self.index_seq.fetch_add(1, Ordering::SeqCst);
for func in &self.funcs {
let num_rows = data_block.num_rows();
Expand Down

0 comments on commit d462ca5

Please sign in to comment.