Skip to content

Commit 0fa75a5

Browse files
committed
fix
1 parent f120326 commit 0fa75a5

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

native/core/src/execution/planner.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ use datafusion::{
7070
};
7171
use datafusion_comet_spark_expr::{
7272
create_comet_physical_fun, create_comet_physical_fun_with_eval_mode, BinaryOutputStyle,
73-
BloomFilterAgg, BloomFilterMightContain, EvalMode, SparkHour, SparkMinute, SparkSecond,
74-
SumInteger,
73+
BloomFilterAgg, BloomFilterMightContain, EvalMode, SumInteger,
7574
};
7675
use iceberg::expr::Bind;
7776

spark/src/test/scala/org/apache/spark/sql/benchmark/CometDatetimeExpressionBenchmark.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ object CometDatetimeExpressionBenchmark extends CometBenchmarkBase {
7979
dir,
8080
spark.sql(s"select timestamp_micros(cast(value/100000 as integer)) as ts FROM $tbl"))
8181
withSQLConf(SQLConf.SESSION_LOCAL_TIMEZONE.key -> timeZone) {
82-
runWithComet(s"Unix Timestamp from Timestamp ($timeZone)", values) {
83-
spark.sql("select unix_timestamp(ts) from parquetV1Table").noop()
84-
}
82+
val name = s"Unix Timestamp from Timestamp ($timeZone)"
83+
val query = "select unix_timestamp(ts) from parquetV1Table"
84+
runExpressionBenchmark(name, values, query)
8585
}
8686
}
8787
}
@@ -95,9 +95,9 @@ object CometDatetimeExpressionBenchmark extends CometBenchmarkBase {
9595
spark.sql(
9696
s"select cast(timestamp_micros(cast(value/100000 as integer)) as date) as dt FROM $tbl"))
9797
withSQLConf(SQLConf.SESSION_LOCAL_TIMEZONE.key -> timeZone) {
98-
runWithComet(s"Unix Timestamp from Date ($timeZone)", values) {
99-
spark.sql("select unix_timestamp(dt) from parquetV1Table").noop()
100-
}
98+
val name = s"Unix Timestamp from Date ($timeZone)"
99+
val query = "select unix_timestamp(dt) from parquetV1Table"
100+
runExpressionBenchmark(name, values, query)
101101
}
102102
}
103103
}

0 commit comments

Comments
 (0)