alamb commented on issue #122:
URL: 
https://github.com/apache/arrow-datafusion/issues/122#issuecomment-956212828


   @j-a-m-l  I think a @xudong963  has a good point that Arrow already includes 
some support for DecimalArrays.
   
   A  good place to start then be to write some tests in sql.rs that create a 
TableProvider with a column of `DecimalArray` type and try to run some basic sql
   
   The typical order I would try is something like
   
   ```
   // projection
   SELECT col + 4 ... FROM table_with_decimal_col
   
   // filter
   SELECT col  FROM table_with_decimal_col where col < 5
   
   // sort
   SELECT col  FROM table_with_decimal_col order by col
   
   // grouping / aggregatie
   SELECT sum(col)  FROM table_with_decimal_col;
   SELECT count(other_col)  FROM table_with_decimal_col group by col
   ```
   
   Writing those tests is probably a good way to figure out how to plumb 
through the support in DataFusion -- I would also recommend doing it in that 
order (projection, filter, sort, grouping / aggregation)
   


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


Reply via email to