Skip to content

Commit

Permalink
Bugfix/encoder row writer (#366)
Browse files Browse the repository at this point in the history
* fix field not nullable error

* fix strList out of bound exception

* fix field not nullable error

* fix strList out of bound exception

Co-authored-by: Anqi <anqi.wang@vesoft.com>
  • Loading branch information
MMyheart and Nicole00 authored Oct 22, 2021
1 parent 597c0ec commit 2b82dda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private SchemaProviderImpl genSchemaProvider(long ver, Schema schema) {
SchemaProviderImpl schemaProvider = new SchemaProviderImpl(ver);
for (ColumnDef col : schema.getColumns()) {
ColumnTypeDef type = col.getType();
boolean nullable = col.isSetNullable();
boolean nullable = col.isSetNullable() && col.isNullable();
boolean hasDefault = col.isSetDefault_value();
int len = type.isSetType_length() ? type.getType_length() : 0;
schemaProvider.addField(new String(col.getName()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ public ByteBuffer processOutOfSpace() {
// Set the new offset and length
temp.putInt(offset, 0);
temp.putInt(offset + Integer.BYTES, 0);
continue;
} else {
// Out of space string
if (strNum >= strList.size()) {
Expand Down

0 comments on commit 2b82dda

Please sign in to comment.