Skip to content

Commit f42b1a9

Browse files
committed
try writing the values still
1 parent a20be73 commit f42b1a9

File tree

1 file changed

+4
-7
lines changed
  • plugins/destination/gremlin/client

1 file changed

+4
-7
lines changed

plugins/destination/gremlin/client/write.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,10 @@ func (c *Client) WriteTableBatch(ctx context.Context, tableName string, msgs mes
4545
// If no primary keys are defined, use all columns
4646
pks = table.Columns.Names()
4747
}
48-
valueColumns := make([]string, 0, len(table.Columns)-len(pks))
49-
if len(table.Columns)-len(pks) > 0 {
50-
// not all columns are a part of "pk", so we need to account for the values
51-
for _, col := range table.Columns {
52-
if !col.PrimaryKey {
53-
valueColumns = append(valueColumns, col.Name)
54-
}
48+
valueColumns := make([]string, 0, len(table.Columns))
49+
for _, col := range table.Columns {
50+
if !col.PrimaryKey {
51+
valueColumns = append(valueColumns, col.Name)
5552
}
5653
}
5754

0 commit comments

Comments
 (0)