[MCOL-1127] Set columns to their DEFAULT values by default Created: 2017-12-20  Updated: 2021-01-17  Resolved: 2021-01-17

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: 1.1.2
Fix Version/s: N/A

Type: New Feature Priority: Minor
Reporter: Sasha V Assignee: Todd Stoffel (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Environment:

data streaming



 Description   

The SQL INSERT command does not have to provide values for all columns in a table. Those columns that are omitted will get their DEFAULT values.

To achieve such decoupling from the table schema, a Bulk Write SDK application has to:

1) retrieve DEFAULT column value using getDefaultValue()
2) call SetValue() to "fill" the column value with its DEFAULT

This is necessary because current Bulk Write SDK requires all columns to be "filled," otherwise the bulk->writeRow() call raises an error: Not all the columns for this row have been filled.

To improve Bulk Write SDK applications, I propose eliminating the need to "fill" columns with their DEFAULT values using the SetValue() call for each row.



 Comments   
Comment by David Thompson (Inactive) [ 2017-12-21 ]

Thanks, that's a good suggestion. Appreciate your continued feedback as it will make this a better interface! Andrew will review after the holidays as he's out on vacation currently.

Generated at Thu Feb 08 02:26:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.