harjitdotsingh commented on a change in pull request #2255:
URL: https://github.com/apache/accumulo/pull/2255#discussion_r705467586



##########
File path: test/src/main/java/org/apache/accumulo/test/ShellServerIT.java
##########
@@ -1939,6 +1939,19 @@ public void scans() throws Exception {
     ts.exec("deletetable -f t");
   }
 
+  @Test
+  public void scansWithColon() throws Exception {
+    ts.exec("createtable twithcolontest");
+    make10WithColon();
+    ts.exec("scan -r row0 -c c\\:f:col0", true, "value");
+    String result = ts.exec("scan -b row1 -c c\\:f:col1 -e row1");
+    assertEquals(2, result.split("\n").length);
+    result = ts.exec("scan -r row0 -c c:f");
+    assertEquals(1, result.split("\n").length);

Review comment:
       For Some reasons the '\\' doesn't make it, the string is not escaped 
anymore and hence the RE was un-necessary. I made it more simpler. The last 
test is a negative test I deliberately left out to make sure that things are 
working. Hope that makes sense. 




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