Github user 7shurik commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/68#discussion_r28532568
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/schema/types/PhoenixArray.java ---
    @@ -561,6 +666,23 @@ public int estimateByteSize(int pos) {
                }
                
                @Override
    +           public String toString() {
    +                   StringBuilder sb = new StringBuilder(TO_STRING_BEGIN);
    +                   boolean isFirst = true;
    +                   final Format defaultFormat = null;
    +                   for (Byte o : byteArr) {
    +                           if (isFirst) {
    +                                   isFirst = false;
    +                           } else {
    +                                   sb.append(TO_STRING_SEPARATOR);
    +                           }
    +                           sb.append(this.baseType.toStringLiteral(o, 
defaultFormat));
    --- End diff --
    
    Thank you, @JamesRTaylor! That's the silver bullet I was looking for. I 
hate duplicating the code like it did.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to