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
Describe the bug
com.google.cloud.spring.data.spanner.core.mapping.SpannerDataException: A child table (tablename) must contain the primary key columns of its parent (tablename) in the same order starting the first column with additional key columns after.
If you have Interleave table that has only the same primary key as the Parent and doesnt have any additional key, then getting this Exception
Note: I have business reason to logically have another table to store separate information from ParentTable
The text was updated successfully, but these errors were encountered:
rajakumare1
changed the title
Error while having the Interleaved table having only one primary key which is same as the parent table
Spanner - Error while having the Interleaved table having only one primary key which is same as the parent table
Mar 8, 2023
Does the Spanner database even allow this? I believe the child table needs a secondary key. Have you tried just adding @PrimaryKey(keyOrder = 2) for associatedlogicalName?
Describe the bug
com.google.cloud.spring.data.spanner.core.mapping.SpannerDataException: A child table (tablename) must contain the primary key columns of its parent (tablename) in the same order starting the first column with additional key columns after.
If you have Interleave table that has only the same primary key as the Parent and doesnt have any additional key, then getting this Exception
Note: I have business reason to logically have another table to store separate information from ParentTable
Sample
}
The text was updated successfully, but these errors were encountered: