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 2018/12/18 22:53:08 UTC

[GitHub] clintropolis commented on a change in pull request #6745: add version comparator for StringComparator

clintropolis commented on a change in pull request #6745: add version comparator for StringComparator
URL: https://github.com/apache/incubator-druid/pull/6745#discussion_r242730994
 
 

 ##########
 File path: processing/src/test/java/org/apache/druid/query/ordering/StringComparatorsTest.java
 ##########
 @@ -142,6 +142,16 @@ public void testNumericComparator()
     Assert.assertTrue(StringComparators.NUMERIC.compare("CAN'T PARSE THIS", "CAN'T TOUCH THIS") < 0);
   }
 
+  @Test
+  public void testVersionComparator()
 
 Review comment:
   All of these tests also pass with `alphanumeric` sorting, maybe worth adding some test cases from the upstream project https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java to illustrate the need for this comparator.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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