You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSV - table with unique index and PK on identity column should prefer the unique index, or allow primaryKeys attribute to override existing PK
Actual Behavior
primary key is used, and we cannot override. Will need to think about which way is best
Obevo Version where this issue was observed
6.3.0, though it exists beforehand
Steps to reproduce the behavior
Create table w/ PK on identity column and unique index
Test this out in CSV loading unit test
Ensure that we can detect identity columns in the metadata test
Use Case 2 related to this:
table exists with primary key and unique index on separate columns
CSV file is defined without the PK identity column, but with the unique index columns
In DB2, it looks like any updates on the column will fail
Ideally, we should allow overriding the PK column. But in case users don't, we should handle this elegantly. Maybe ignoring the identity PK as mentioned above would be good
The text was updated successfully, but these errors were encountered:
shantstepanian
changed the title
CSV - table with unique index and PK on identity column should prefer the unique index, or allow primaryKeys attribute to override existing PK
Improve handling of CSV static data load where identity column with separate unique index involved
Dec 27, 2018
We decided to only update the logic to pick the unique index in a smarter way, e.g. 1) only pick a PK or index if all of its columns are defined in the CSV file 2) give preference to the primary key if multiple PKs/unique indices satisfy this logic
We will still not allow the metadata override to be specified if a valid unique index exists. If we continue to receive feedback on needing this even after this fix is in, we will consider it
Expected Behavior
CSV - table with unique index and PK on identity column should prefer the unique index, or allow primaryKeys attribute to override existing PK
Actual Behavior
primary key is used, and we cannot override. Will need to think about which way is best
Obevo Version where this issue was observed
6.3.0, though it exists beforehand
Steps to reproduce the behavior
Create table w/ PK on identity column and unique index
Test this out in CSV loading unit test
Ensure that we can detect identity columns in the metadata test
Use Case 2 related to this:
table exists with primary key and unique index on separate columns
CSV file is defined without the PK identity column, but with the unique index columns
In DB2, it looks like any updates on the column will fail
Ideally, we should allow overriding the PK column. But in case users don't, we should handle this elegantly. Maybe ignoring the identity PK as mentioned above would be good
The text was updated successfully, but these errors were encountered: