Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: zenghua <[email protected]>
  • Loading branch information
zenghua committed Feb 17, 2025
1 parent bf2917c commit 4e7b1ff
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rust/lakesoul-io/src/filter/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use datafusion_substrait::substrait::proto::plan_rel::RelType::Root;
use datafusion_substrait::substrait::proto::r#type::Nullability;
use datafusion_substrait::substrait::proto::rel::RelType::Read;
use datafusion_substrait::substrait::proto::{Expression, FunctionArgument, Plan, PlanRel, Rel, RelRoot};
#[allow(deprecated)]
use datafusion_substrait::variation_const::TIMESTAMP_MICRO_TYPE_VARIATION_REF;
use tokio::runtime::{Builder, Handle};
use tokio::task;
Expand Down Expand Up @@ -236,10 +237,13 @@ impl Parser {
Some(ArgType::Value(Expression {
rex_type: Some(RexType::Literal(literal)),
})) => match literal.literal_type {
// for compatibility with substrait old java version
// where type variation ref field is not filled in java
Some(LiteralType::Timestamp(_)) | Some(LiteralType::TimestampTz(_)) => {
literal.type_variation_reference = TIMESTAMP_MICRO_TYPE_VARIATION_REF;
// for compatibility with substrait old java version
// where type variation ref field is not filled in java
#[allow(deprecated)]
{
literal.type_variation_reference = TIMESTAMP_MICRO_TYPE_VARIATION_REF;
}
}
_ => {}
},
Expand Down

0 comments on commit 4e7b1ff

Please sign in to comment.