Closed o1lo01ol1o closed 3 years ago
JDBC export is definitely not smart enough to look inside PkForSch-- and for good reason; it's a tough theorem proving task to determine if for example an arbitrary constraint is equivalent to a PK. The JDBC export just exports into 'categorical normal form', where every exported row gets a new unique single column PK. to make matters worse because of SQL's nulls and 3 valued logic it's not necessarily even the case that CQL constraints that looks like PKs actually are
gotcha, thanks!
btw, we have an alternate SQL import pathway now that goes through the system catalog / INFORMATION SCHEMA views. We should chat offline sometime if you're in an environment where the exact semantics of SQL really matters.
Perhaps related to #68, adding a version of the following constraint from the examples to my schema still produces an
id
column with aprimary key
constraint when I export via JDBC. I would expect that the primary key should be set on the composite attribute and there would be noid
column, but maybe this implementation is by design?