https://slingdata.io logo
Hi, Im not sure that I understnad the
# sling-help
m
Hi, Im not sure that I understnad the difference of defining primary key on api spec file and replication. Can't see any explanation about that in docs Thanks in advence
f
Hey @marikt94 , will do. when you define a PK in the spec, it is set as the PK of the stream (if there is no PK in the stream) (see [here](https://github.com/slingdata-io/sling-cli/blob/98f2e3d7aa05ed9d849c4d14519f10a14b05f406/core/sling/replication.go#L402) ) So if you have a PK in the Spec and in the stream, the PK in the stream will have priority. If you have in the Spec and not in the stream, PK of the spec is used.