You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/02/10 23:04:11 UTC

[GitHub] [druid] fstolba opened a new issue #9346: string_to_array ordering

fstolba opened a new issue #9346: string_to_array ordering
URL: https://github.com/apache/druid/issues/9346
 
 
   ### Affected Version
   0.17
   
   ### Description
   When using the function `string_to_array` on ingest the ordering of the resulting arrays seems random. I would expect the array elements to keep the order they had in the constituting string. Is this to be expected / by design?
   
   ### Example:
   ```
   Function Call                                         Result
   string_to_array("A_B_C", "_")                         ["C", "B", "A"]
   string_to_array("D_E_F", "_")                         ["E", "D", "F"]
   string_to_array("A_B", "_")                           ["A", "B"]
   string_to_array("A_B_B_C", "_")                       ["A", "C", "B", "B"]
   ```
   
   ### Desired result:
   ```
   Function Call                                         Result
   string_to_array("A_B_C", "_")                         ["A", "B", "C"]
   string_to_array("D_E_F", "_")                         ["D", "E", "F"]
   string_to_array("A_B", "_")                           ["A", "B"]
   string_to_array("A_B_B_C", "_")                       ["A", "B", "B", "C"]
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org