[jira] [Updated] (CARBONDATA-3835) Global sort doesn't sort string columns properly

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (CARBONDATA-3835) Global sort doesn't sort string columns properly

Akash R Nilugal (Jira)

     [ https://issues.apache.org/jira/browse/CARBONDATA-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ajantha Bhat updated CARBONDATA-3835:
-------------------------------------
    Description:
problem:

For global sort without partition, string comes as byte[], if we  use string comparator (StringSerializableComparator) it wll convert byte[] to toString which gives address and comparision goes wrong.

 

solution: change data type to byte before choosing comparator.  

  was:
problem:

For global sort without partition, string comes as byte[], if we  use string comparator (StringSerializableComparator) it wll convert to tobytes() which gives address and comparision goes wrong.

 

solution: change data type to byte before choosing comparator.  


> Global sort doesn't sort string columns properly
> ------------------------------------------------
>
>                 Key: CARBONDATA-3835
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3835
>             Project: CarbonData
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Ajantha Bhat
>            Assignee: Ajantha Bhat
>            Priority: Major
>             Fix For: 2.0.0
>
>
> problem:
> For global sort without partition, string comes as byte[], if we  use string comparator (StringSerializableComparator) it wll convert byte[] to toString which gives address and comparision goes wrong.
>  
> solution: change data type to byte before choosing comparator.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)