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 2022/06/21 08:29:57 UTC

[GitHub] [arrow-datafusion] liukun4515 opened a new issue, #2755: support data type coerced and decimal in INLIST expr

liukun4515 opened a new issue, #2755:
URL: https://github.com/apache/arrow-datafusion/issues/2755

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for this feature, in addition to  the *what*)
   
   When I apply the `in list` filter to the below table
   
   ```
   ❯ \d food
   +---------------+--------------+------------+-------------+-----------------+-------------+
   | table_catalog | table_schema | table_name | column_name | data_type       | is_nullable |
   +---------------+--------------+------------+-------------+-----------------+-------------+
   | datafusion    | public       | food       | a           | Decimal(10, 5)  | NO          |
   | datafusion    | public       | food       | b           | Decimal(20, 15) | NO          |
   | datafusion    | public       | food       | c           | Boolean         | NO          |
   +---------------+--------------+------------+-------------+-----------------+-------------+
   
   ❯  select * from food where a in (1);
   ArrowError(ExternalError(NotImplemented("InList does not support datatype Decimal(10, 5).")))
   ```
   
   explain the query:
   
   ```
   ❯ explain select * from food where a in (1);
   +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | plan_type     | plan                                                                                                                                                                         |
   +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | logical_plan  | Projection: #food.a, #food.b, #food.c                                                                                                                                        |
   |               |   Filter: #food.a IN ([Int64(1)])                                                                                                                                            |
   |               |     TableScan: food projection=Some([a, b, c]), partial_filters=[#food.a IN ([Int64(1)])]                                                                                    |
   | physical_plan | ProjectionExec: expr=[a@0 as a, b@1 as b, c@2 as c]                                                                                                                          |
   |               |   CoalesceBatchesExec: target_batch_size=4096                                                                                                                                |
   |               |     FilterExec: a@0 IN ([CastExpr { expr: Literal { value: Int64(1) }, cast_type: Decimal(10, 5), cast_options: CastOptions { safe: false } }])                              |
   |               |       RepartitionExec: partitioning=RoundRobinBatch(16)                                                                                                                      |
   |               |         CsvExec: files=[/Users/kliu3/Documents/github/arrow-datafusion/datafusion-cli/target/debug/aggregate_simple.csv], has_header=false, limit=None, projection=[a, b, c] |
   |               |                                                                                                                                                                              |
   +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   2 rows in set. Query took 0.007 seconds.
   ```
   
   We need convert the data type of expr and list to the common data type.
   
   
   **Describe the solution you'd like**
   A clear and concise description of what you want to happen.
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features you've considered.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


-- 
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.apache.org

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


[GitHub] [arrow-datafusion] liukun4515 commented on issue #2755: support data type coerced and decimal in INLIST expr

Posted by GitBox <gi...@apache.org>.
liukun4515 commented on issue #2755:
URL: https://github.com/apache/arrow-datafusion/issues/2755#issuecomment-1161433516

   I will file a PR to fix it.


-- 
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


[GitHub] [arrow-datafusion] liukun4515 commented on issue #2755: support data type coerced and decimal in INLIST expr

Posted by GitBox <gi...@apache.org>.
liukun4515 commented on issue #2755:
URL: https://github.com/apache/arrow-datafusion/issues/2755#issuecomment-1162673018

   blocked by this issue https://github.com/apache/arrow-datafusion/issues/2759 
   


-- 
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


[GitHub] [arrow-datafusion] liukun4515 closed issue #2755: support data type coerced and decimal in INLIST expr

Posted by GitBox <gi...@apache.org>.
liukun4515 closed issue #2755: support data type coerced and decimal in INLIST expr
URL: https://github.com/apache/arrow-datafusion/issues/2755


-- 
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