Skip to content

Clickpipe destination table engine import issue #400

@will-regal-voice

Description

@will-regal-voice

I imported a clickpipe resource, and the engine type is MergeTree() (note the parentheses).

"destination": {
              "columns": [
                ...
              ],
              "database": "default",
              "managed_table": true,
              "roles": null,
              "table": "destination_table",
              "table_definition": {
                "engine": {
                  "column_ids": null,
                  "type": "MergeTree()",
                  "version_column_id": null
                },
                "partition_by": null,
                "primary_key": null,
                "sorting_key": null
              }
            },

However, if you then try to plan, you get this error message:

Error: Invalid Attribute Value Match

  with clickhouse_clickpipe.kinesis_test,
  on main.tf line 64, in resource "clickhouse_clickpipe" "kinesis_test":
  64: resource "clickhouse_clickpipe" "kinesis_test" {

Attribute destination.table_definition.engine.type value must be one of: ["MergeTree" "ReplacingMergeTree" "SummingMergeTree"
"Null"], got: "MergeTree()"

I am on provider version 3.8.0-alpha2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions