alamb commented on PR #23014: URL: https://github.com/apache/datafusion/pull/23014#issuecomment-4929709591
> For example, for x IN (10, 20, 30), the fast path can behave like: > > x == 10 OR x == 20 OR x == 30 in fact DataFuson does this rewrite explicitly today: ```sql DataFusion CLI v54.0.0 > create table t (v int) as values (1),(2), (3), (4); 0 row(s) fetched. Elapsed 0.034 seconds. > explain select * from t where v IN (10, 20, 30); +---------------+-------------------------------+ | plan_type | plan | +---------------+-------------------------------+ | physical_plan | ┌───────────────────────────┐ | | | │ FilterExec │ | | | │ -------------------- │ | | | │ predicate: │ | | | │ v = 10 OR v = 20 OR v = 30│ | | | └─────────────┬─────────────┘ | | | ┌─────────────┴─────────────┐ | | | │ DataSourceExec │ | | | │ -------------------- │ | | | │ bytes: 112 │ | | | │ format: memory │ | | | │ rows: 1 │ | | | └───────────────────────────┘ | | | | +---------------+-------------------------------+ 1 row(s) fetched. Elapsed 0.014 seconds. ``` -- 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]
