-
Notifications
You must be signed in to change notification settings - Fork 0
Added support of extended data types #26
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
Conversation
| .findFirst() | ||
| .orElseThrow(() -> new IllegalArgumentException("Wrong extended vector type: " + code)); | ||
| } | ||
| } No newline at end of file |
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.
nit: new line
| VARSTRING(253), | ||
| STRING(254), | ||
| GEOMETRY(255); | ||
| GEOMETRY(255), |
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.
unrelated to PR: do you plan to remove GEOMETRY, or to modify it to correspond to our Geography(point), or just leave it as is?
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.
At the moment, our Geography(point) data type corresponds to the STRING type in the MySQL client/server protocol. I think it is a nice mapping and would like to leave it as it is.
The GEOMETRY type can be safely removed as it is never actually used.
I believe that the same can be done with OLDDECIMAL, NEWDATE, and NULL
| public DataType getBinaryEncodeType() { | ||
| return DataType.BLOB; | ||
| } | ||
| } No newline at end of file |
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.
nit: new line
| throw new IllegalArgumentException("Unsupported vector type: " + dataType.name()); | ||
| } | ||
| } | ||
| } No newline at end of file |
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.
nit: new line
This PR adds the same functionality as a corresponding PR from JDBC
memsql/S2-JDBC-Connector#22
For simplicity, the vectorTypeOutputFormat configuration is not added (the same functionality can be achieved using session variables).