We cannot since precision is actually stored in the place of maxLength. 
Calling super.readFields would cause that number to be parsed into the 
maxLength, while technically decimal does not have one.

On 02/26/2013 04:03 PM, James Taylor wrote:
>
> In src/main/java/com/salesforce/phoenix/schema/PColumnDecimalImpl.java:
>
> > +                column.getScale(), column.isNullable(), position);
> > +    }
> > +
> > +    @Override
> > +    public Integer getScale() {
> > +        return scale;
> > +    }
> > +
> > +    @Override
> > +    public Integer getPrecision() {
> > +        return precision;
> > +    }
> > +
> > +    @Override
> > +    public void readFields(DataInput input) throws IOException {
> > +        byte[] columnNameBytes = Bytes.readByteArray(input);
>
> Can't we do a super.readFields here?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/forcedotcom/phoenix/pull/72/files#r3163707>.
>