-
Notifications
You must be signed in to change notification settings - Fork 157
Add TS 1.5 Features #691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TS 1.5 Features #691
Conversation
| String s = new String(v.binaryValue(), StandardCharsets.UTF_8); | ||
| return new Cell(s); | ||
| final OtpErlangBinary v = (OtpErlangBinary) cell; | ||
| if (columnDescriptions.get(j).getType() == RiakTsPB.TsColumnType.VARCHAR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO better to throw exception in case when something is incompatible, rather then silently skip it:
switch(columnDescriptions.get(j).getType()){
case RiakTsPB.TsColumnType.VARCHAR://
case RiakTsPB.TsColumnType.BLOB: //
default:
throw new IllegalStateException(<proper explanation>)
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do fall through to the "default" case on line 367 / 368 where we throw an exception, but I guess it could be more specific.
|
|
||
| if (lk.hasKeyOrder()) | ||
| { | ||
| sb.append(" "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be (but not mandatory) re-written like:
sb.append(" ")
.append(lk.getKeyOrder().toString());
…client into ts-1.5-features
…ake error be more informative
Adds the Blob data type and support for the ever-expanding DESCRIBE table result.
Description
Adds support for the new BLOB TS data type, and accepts another column for the DESCRIBE table result.
Related Issue
https://bashoeng.atlassian.net/browse/CLIENTS-935
Motivation and Context
To implement all the things!
How Has This Been Tested?
Tests run fine against TS 1.5 RC2.
Types of changes
Checklist:
Pull requests that are small and limited in scope are most welcome.