为什么Apache Orc RecordReader.searchArgument()无法正确过滤? [英] Why is Apache Orc RecordReader.searchArgument() not filtering correctly?
本文介绍了为什么Apache Orc RecordReader.searchArgument()无法正确过滤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个简单的程序,该程序:
Here is a simple program that:
- 将记录写入Orc文件
- 然后尝试使用谓词下推(
searchArgument
) 读取文件
- Writes records into an Orc file
- Then tries to read the file using predicate pushdown (
searchArgument
)
问题:
- 这是在兽人中使用谓词下推的正确方法吗?
-
read(..)
方法似乎返回所有记录,而完全忽略了searchArguments
.为什么会这样?
- Is this the right way to use predicate push down in Orc?
- The
read(..)
method seems to return all the records, completely ignoring thesearchArguments
. Why is that?
注释:
我无法找到任何有用的单元测试来演示Orc中谓词下推的工作方式(火花和
I have not been able to find any useful unit test that demonstrates how predicate pushdown works in Orc (Orc on GitHub). Nor am I able to find any clear documentation on this feature. Tried looking at Spark and Presto code, but I was not able to find anything useful.
查看全文