felipepessoto opened a new issue, #9003:
URL: https://github.com/apache/incubator-gluten/issues/9003
### Backend
VL (Velox)
### Bug description
The following test prints:
metric should be 3. Value: 0
metric should be 3. Value: 3
```
test("operation metrics - test gluten") {
withTempDir { tempDir =>
val dirPath = tempDir.getAbsolutePath
spark.range(0, 3)
.write
.format("delta")
.save(dirPath)
val metric = createMetric(spark.sparkContext, "number of rows")
val incrMetric = IncrementMetric(TrueLiteral, metric)
spark.read.load(dirPath)
.select(col("_metadata.file_path"))
.filter(new Column(incrMetric))
.collect()
println("metric should be 3. Value: " + metric.value)
spark.read.load(dirPath)
.select(input_file_name())
.filter(new Column(incrMetric))
.collect()
println("metric should be 3. Value: " + metric.value)
}
}
```
### Spark version
Spark-3.5.x
### Spark configurations
_No response_
### System information
_No response_
### Relevant logs
```bash
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]