andrei-ionescu edited a comment on issue #1404:
URL: 
https://github.com/apache/arrow-datafusion/issues/1404#issuecomment-986926373


   The use case I'm after is writing data on disk partitioned. 
   
   Following the previous example...
   ```
   +-------------------------+---------------+-----+       P1 | 
2020-10-18T00:29:41Z | Steam    | 11 |
   | nlm_dimension_load_date | src_fuel_type |  id |          | 
2020-10-18T00:29:41Z | Steam    | 22 |
   +-------------------------+---------------+-----+          | 
2020-10-18T00:29:41Z | Steam    | 33 |
   | 2020-10-18T00:29:41Z    | Steam         |  11 |
   | 2020-10-18T00:29:41Z    | Steam         |  22 |
   | 2020-10-18T00:29:41Z    | Steam         |  33 |       P2 | 
2021-06-09T00:32:40Z | Gas      |  3 |
   | 2020-10-18T00:29:41Z    | Gas           |   1 |          | 
2021-06-09T00:32:40Z | Gas      |  2 |
   | 2021-06-09T00:32:40Z    | Gas           |   3 |        
   | 2021-06-09T00:32:40Z    | Gas           |   2 |
   | 2021-06-09T00:32:40Z    | Electric      |  a1 |       P3 | 
2021-06-09T00:32:40Z | Electric | a1 |
   | 2020-10-18T00:29:41Z    | Electric      |  b1 |                 
   | 2020-10-18T00:29:41Z    | Electric      |  c1 |        
   | 2020-10-18T00:29:41Z    | Electric      |  d1 |       P4 | 
2020-10-18T00:29:41Z | Gas      |  1 |
   +-------------------------+---------------+-----+        
                                                            
                                                           P5 | 
2020-10-18T00:29:41Z | Electric | b1 |
                                                              | 
2020-10-18T00:29:41Z | Electric | c1 |
                                                              | 
2020-10-18T00:29:41Z | Electric | d1 |
   ```
   
   I want to write the data in the following folders:
   ```
   nlm_dimension_load_date=2020-10-18T00:29:41Z/src_fuel_type=Steam/
   nlm_dimension_load_date=2021-06-09T00:32:40Z/src_fuel_type=Gas/
   nlm_dimension_load_date=2021-06-09T00:32:40Z/src_fuel_type=Electric/
   nlm_dimension_load_date=2020-10-18T00:29:41Z/src_fuel_type=Gas/
   nlm_dimension_load_date=2020-10-18T00:29:41Z/src_fuel_type=Electric/
   ```
   
   To be able to do that I need the collected data to be returned in correct 
partitions, so that I can write those groups/partitions, one by one.


-- 
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-unsubscr...@arrow.apache.org

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


Reply via email to