Skip to main content

Community

Connector Improvement: S3 Connector REST API enhancement - Support for upsert file using custom primary key

Completed

Please sign in to leave a comment.

Comments

5 comments

  • Official comment

    Hi Nikola,

    Thank you for reaching out! We are looking into this and will let you know when it's done.

    Thank you,
    Parmeet

    Hi,

    Do we have any update on this request ?

    We are planning to use the REST API feature to create an S3 connector. However, the feature to select primary keys is not available through the REST API. As a result, we are forced to use the UI to select primary keys after creating the connector via the REST API. This defeats the purpose of using the REST API.

     

      

    Would be great to see this same functionality extended to the SFTP connector setup.  

    Hi everyone, Upsert file using custom primary key is now available via the API for S3 - https://fivetran.com/docs/rest-api/interactive-api-reference/api-configuration/connector-configuration#upsertwithcustomprimarykey Other File connectors to follow soon.

    Thank you,
    Parmeet

    Hello, 

    the original author requested Terraform support for defining primary keys to allow "upsert_file_with_primary_keys" to be used as the value of "append_file_option" property. I can see the latest update was that support for this was added on the API but there is no mention of Fivetran's Terraform provider. Judging by the error I get when trying to set the "primary_key" option to a column in my connector schema I would say that this is still not supported via Terraform provider.

    Error message for reference:

    Cannot set value for this attribute as the provider has marked it as read-only. Remove the configuration line setting the value.

    Refer to the provider documentation or contact the provider developers for additional information about configurable and read-only attributes that are supported.