You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/23 03:24:15 UTC

[GitHub] [arrow-datafusion] lvheyang edited a comment on pull request #764: #723 limit pruning rule to simple expression

lvheyang edited a comment on pull request #764:
URL: https://github.com/apache/arrow-datafusion/pull/764#issuecomment-885372817


   I've committed some e2e test cases in parquet_pruing.rs:
   
   for int32 column:
   
   1. `SELECT * FROM t where i < 1`
   2. `SELECT * FROM t where -i > -1`
   3. `SELECT * FROM t where i = 1`
   4. `SELECT * FROM t where abs(i) = 1 and i = 1` : use `i=1` as prune predicate
   5. `SELECT * FROM t where abs(i) = 1` : not supported
   6. `SELECT * FROM t where i+1 = 1` : not supported
   7. `SELECT * FROM t where 1-i > 1`: not supported
   
   for float64 column
   
   1. `SELECT * FROM t where f < 1`
   2. `SELECT * FROM t where -f > -1`
   3. `SELECT * FROM t where abs(f - 1) <= 0.000001  and f >= 0.1` : use `f>=0.1` as prune predicate
   4. `SELECT * FROM t where abs(f-1) <= 0.000001` : not supported 
   5. `SELECT * FROM t where f+1 > 1.1` : not supported 
   6. `SELECT * FROM t where 1-f > 1` : not supported
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org