@@ -72,6 +72,7 @@ pub fn serialize_physical_aggr_expr(
7272 codec. try_encode_udaf ( aggr_expr. fun ( ) , & mut buf) ?;
7373 Ok ( protobuf:: PhysicalExprNode {
7474 expr_id : None ,
75+ dynamic_filter_expr_id : None ,
7576 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: AggregateExpr (
7677 protobuf:: PhysicalAggregateExprNode {
7778 aggregate_function : Some ( physical_aggregate_expr_node:: AggregateFunction :: UserDefinedAggrFunction ( name) ) ,
@@ -282,13 +283,15 @@ pub fn serialize_physical_expr_with_converter(
282283 } ;
283284 return Ok ( protobuf:: PhysicalExprNode {
284285 expr_id : None ,
286+ dynamic_filter_expr_id : None ,
285287 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: Literal ( value) ) ,
286288 } ) ;
287289 }
288290
289291 if let Some ( expr) = expr. downcast_ref :: < Column > ( ) {
290292 Ok ( protobuf:: PhysicalExprNode {
291293 expr_id : None ,
294+ dynamic_filter_expr_id : None ,
292295 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: Column (
293296 protobuf:: PhysicalColumn {
294297 name : expr. name ( ) . to_string ( ) ,
@@ -299,6 +302,7 @@ pub fn serialize_physical_expr_with_converter(
299302 } else if let Some ( expr) = expr. downcast_ref :: < UnKnownColumn > ( ) {
300303 Ok ( protobuf:: PhysicalExprNode {
301304 expr_id : None ,
305+ dynamic_filter_expr_id : None ,
302306 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: UnknownColumn (
303307 protobuf:: UnknownColumn {
304308 name : expr. name ( ) . to_string ( ) ,
@@ -318,13 +322,15 @@ pub fn serialize_physical_expr_with_converter(
318322
319323 Ok ( protobuf:: PhysicalExprNode {
320324 expr_id : None ,
325+ dynamic_filter_expr_id : None ,
321326 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: BinaryExpr (
322327 binary_expr,
323328 ) ) ,
324329 } )
325330 } else if let Some ( expr) = expr. downcast_ref :: < CaseExpr > ( ) {
326331 Ok ( protobuf:: PhysicalExprNode {
327332 expr_id : None ,
333+ dynamic_filter_expr_id : None ,
328334 expr_type : Some (
329335 protobuf:: physical_expr_node:: ExprType :: Case (
330336 Box :: new (
@@ -368,6 +374,7 @@ pub fn serialize_physical_expr_with_converter(
368374 } else if let Some ( expr) = expr. downcast_ref :: < NotExpr > ( ) {
369375 Ok ( protobuf:: PhysicalExprNode {
370376 expr_id : None ,
377+ dynamic_filter_expr_id : None ,
371378 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: NotExpr ( Box :: new (
372379 protobuf:: PhysicalNot {
373380 expr : Some ( Box :: new (
@@ -379,6 +386,7 @@ pub fn serialize_physical_expr_with_converter(
379386 } else if let Some ( expr) = expr. downcast_ref :: < IsNullExpr > ( ) {
380387 Ok ( protobuf:: PhysicalExprNode {
381388 expr_id : None ,
389+ dynamic_filter_expr_id : None ,
382390 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: IsNullExpr (
383391 Box :: new ( protobuf:: PhysicalIsNull {
384392 expr : Some ( Box :: new (
@@ -390,6 +398,7 @@ pub fn serialize_physical_expr_with_converter(
390398 } else if let Some ( expr) = expr. downcast_ref :: < IsNotNullExpr > ( ) {
391399 Ok ( protobuf:: PhysicalExprNode {
392400 expr_id : None ,
401+ dynamic_filter_expr_id : None ,
393402 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: IsNotNullExpr (
394403 Box :: new ( protobuf:: PhysicalIsNotNull {
395404 expr : Some ( Box :: new (
@@ -401,6 +410,7 @@ pub fn serialize_physical_expr_with_converter(
401410 } else if let Some ( expr) = expr. downcast_ref :: < InListExpr > ( ) {
402411 Ok ( protobuf:: PhysicalExprNode {
403412 expr_id : None ,
413+ dynamic_filter_expr_id : None ,
404414 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: InList ( Box :: new (
405415 protobuf:: PhysicalInListNode {
406416 expr : Some ( Box :: new (
@@ -414,6 +424,7 @@ pub fn serialize_physical_expr_with_converter(
414424 } else if let Some ( expr) = expr. downcast_ref :: < NegativeExpr > ( ) {
415425 Ok ( protobuf:: PhysicalExprNode {
416426 expr_id : None ,
427+ dynamic_filter_expr_id : None ,
417428 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: Negative ( Box :: new (
418429 protobuf:: PhysicalNegativeNode {
419430 expr : Some ( Box :: new (
@@ -425,13 +436,15 @@ pub fn serialize_physical_expr_with_converter(
425436 } else if let Some ( lit) = expr. downcast_ref :: < Literal > ( ) {
426437 Ok ( protobuf:: PhysicalExprNode {
427438 expr_id : None ,
439+ dynamic_filter_expr_id : None ,
428440 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: Literal (
429441 lit. value ( ) . try_into ( ) ?,
430442 ) ) ,
431443 } )
432444 } else if let Some ( cast) = expr. downcast_ref :: < CastExpr > ( ) {
433445 Ok ( protobuf:: PhysicalExprNode {
434446 expr_id : None ,
447+ dynamic_filter_expr_id : None ,
435448 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: Cast ( Box :: new (
436449 protobuf:: PhysicalCastNode {
437450 expr : Some ( Box :: new (
@@ -444,6 +457,7 @@ pub fn serialize_physical_expr_with_converter(
444457 } else if let Some ( cast) = expr. downcast_ref :: < TryCastExpr > ( ) {
445458 Ok ( protobuf:: PhysicalExprNode {
446459 expr_id : None ,
460+ dynamic_filter_expr_id : None ,
447461 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: TryCast ( Box :: new (
448462 protobuf:: PhysicalTryCastNode {
449463 expr : Some ( Box :: new (
@@ -458,6 +472,7 @@ pub fn serialize_physical_expr_with_converter(
458472 codec. try_encode_udf ( expr. fun ( ) , & mut buf) ?;
459473 Ok ( protobuf:: PhysicalExprNode {
460474 expr_id : None ,
475+ dynamic_filter_expr_id : None ,
461476 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: ScalarUdf (
462477 protobuf:: PhysicalScalarUdfNode {
463478 name : expr. name ( ) . to_string ( ) ,
@@ -475,6 +490,7 @@ pub fn serialize_physical_expr_with_converter(
475490 } else if let Some ( expr) = expr. downcast_ref :: < LikeExpr > ( ) {
476491 Ok ( protobuf:: PhysicalExprNode {
477492 expr_id : None ,
493+ dynamic_filter_expr_id : None ,
478494 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: LikeExpr ( Box :: new (
479495 protobuf:: PhysicalLikeExprNode {
480496 negated : expr. negated ( ) ,
@@ -492,6 +508,7 @@ pub fn serialize_physical_expr_with_converter(
492508 let ( s0, s1, s2, s3) = expr. seeds ( ) ;
493509 Ok ( protobuf:: PhysicalExprNode {
494510 expr_id : None ,
511+ dynamic_filter_expr_id : None ,
495512 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: HashExpr (
496513 protobuf:: PhysicalHashExprNode {
497514 on_columns : serialize_physical_exprs (
@@ -518,6 +535,7 @@ pub fn serialize_physical_expr_with_converter(
518535 . collect :: < Result < _ > > ( ) ?;
519536 Ok ( protobuf:: PhysicalExprNode {
520537 expr_id : None ,
538+ dynamic_filter_expr_id : None ,
521539 expr_type : Some ( protobuf:: physical_expr_node:: ExprType :: Extension (
522540 protobuf:: PhysicalExtensionExprNode { expr : buf, inputs } ,
523541 ) ) ,
0 commit comments