Skip to content

Commit

Permalink
use constant, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Nov 29, 2024
1 parent 5631853 commit db42583
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class NativeUtil {
* @param numOutputCols
* The number of output columns
* @param arrowFfiMetric
* SQLMetric to record time spend performing Arrow FFI to transfer batches from native to JVM
* SQLMetric to record time performing Arrow FFI to transfer batches from native to JVM
* @param func
* The function to call to get the next batch
* @return
Expand Down
5 changes: 3 additions & 2 deletions spark/src/test/scala/org/apache/comet/CometNativeSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package org.apache.comet
import org.apache.spark.SparkException
import org.apache.spark.sql.CometTestBase
import org.apache.spark.sql.catalyst.expressions.PrettyAttribute
import org.apache.spark.sql.comet.{CometExec, CometExecUtils}
import org.apache.spark.sql.comet.{CometExec, CometExecUtils, CometMetricNode}
import org.apache.spark.sql.execution.metric.SQLMetrics
import org.apache.spark.sql.types.LongType
import org.apache.spark.sql.vectorized.ColumnarBatch
Expand All @@ -39,7 +39,8 @@ class CometNativeSuite extends CometTestBase {
}),
1,
limitOp,
SQLMetrics.createNanoTimingMetric(spark.sparkContext, "Arrow FFI Time"),
SQLMetrics
.createNanoTimingMetric(spark.sparkContext, CometMetricNode.ARROW_FFI_TIME_DESCRIPTION),
1,
0)
cometIter.next()
Expand Down

0 comments on commit db42583

Please sign in to comment.