[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() 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. |