Attila Bukor has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/13760 )
Change subject: KUDU-1938 Add support for VARCHAR pt 1 ...................................................................... KUDU-1938 Add support for VARCHAR pt 1 Introduces the VARCHAR data type to the server. Follow up commits will add integration to the clients. The VARCHAR type is parameterized with a length column type attribute similar to DECIMAL's scale and precision. Internally it's stored as BINARY. The maximum length for VARCHAR is 65,535 characters. If a value longer than the "n" is submitted for a VARCHAR(n) column the value is truncated to "n" characters before persisting the data on the server side. The maximum length was chosen for compatibility reasons. Apache Impala has a maximum length of 65,535 *bytes* for VARCHAR and major RDBMSs I checked also have a similar limits either in characters or bytes, mostly configurable. Change-Id: I998982dba93831db91c43a97ce30d3e68c2a4a54 Reviewed-on: http://gerrit.cloudera.org:8080/13760 Reviewed-by: Alexey Serbin <[email protected]> Tested-by: Kudu Jenkins Reviewed-by: Grant Henke <[email protected]> Reviewed-by: Adar Dembo <[email protected]> --- M src/kudu/common/column_predicate-test.cc M src/kudu/common/common.proto M src/kudu/common/partial_row-test.cc M src/kudu/common/partial_row.cc M src/kudu/common/partial_row.h M src/kudu/common/schema.cc M src/kudu/common/schema.h M src/kudu/common/types.cc M src/kudu/common/types.h M src/kudu/common/wire_protocol.cc M src/kudu/util/CMakeLists.txt A src/kudu/util/char_util.cc A src/kudu/util/char_util.h 13 files changed, 256 insertions(+), 28 deletions(-) Approvals: Alexey Serbin: Looks good to me, approved Kudu Jenkins: Verified Grant Henke: Looks good to me, approved Adar Dembo: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/13760 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I998982dba93831db91c43a97ce30d3e68c2a4a54 Gerrit-Change-Number: 13760 Gerrit-PatchSet: 34 Gerrit-Owner: Attila Bukor <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Attila Bukor <[email protected]> Gerrit-Reviewer: Grant Henke <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: Todd Lipcon <[email protected]> Gerrit-Reviewer: Will Berkeley <[email protected]>
