Manno15 opened a new issue #2264:
URL: https://github.com/apache/accumulo/issues/2264


   **Describe the bug**
   Original ticket: https://issues.apache.org/jira/browse/ACCUMULO-814. Several 
commands that extend the `ScanCommand` do not properly implement the show few 
option.  It is possible other options behave similarly.
   
   **To Reproduce**
   Steps to demonstrate. Also can follow the example given below.
   1. Launch an accumulo instance and create a table in the accumulo-shell.
   2. Insert a row into the table. E.x: `insert foo person  name bob`
   3. Run a scan on the table with the -f or --show-few option added
   4. Do the same step but with a command that extends `ScanCommand`, like the 
`GrepCommand`.
   
   **Expected behavior**
   For the output of any command with the show few option to be truncated to 
the size specified. 
   
   **Screenshots**
   Example output of how the option works with `scan`
   ```
   root@uno test> scan
   foo person:name []   jeff
   root@uno test> scan -t test -f 4
   foo pers:name []     jeff
   ```
   
   and it not working properly with `grep`.
   
   ```
   root@uno test> grep foo
   foo person:name []   jeff
   root@uno test> grep foo -f 1
   foo person:name []   jeff
   ```
   
   **Additional context**
   Alternate solutions/enhancements were proposed in the original Jira ticket. 
It was also suggested that the show-few option should utilize the user 
formatter.  


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