hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
42.38k stars 9.49k forks source link

TERRAFORM CRASH #23867

Closed bodonald closed 4 years ago

bodonald commented 4 years ago

Terraform Version

Terraform v0.12.19
+ provider.aws v2.44.0

Terraform Configuration Files

resource "aws_glue_catalog_table" "athena_parquet" {
  name = "athena_parquet"
  database_name = aws_athena_database.database-test-athena-parquet-file.name
  owner = "hadoop"

  table_type = "EXTERNAL_TABLE"

  parameters = {
    EXTERNAL = "TRUE"
    "parquet.compress" = "SNAPPY"
  }

  partition_keys {
    name = "county_id"
    type = "string"
  }

  storage_descriptor {
    location = "s3://data-test-athena-parquet/athena_parquet"

    input_format = "org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat"
    output_format = "org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat"

    columns {
      name = "c10_id"
      type = "string"
    }

    columns {
      name = "ag_id"
      type = "string"
    }

    columns {
      name = "area_id"
      type = "string"
    }

    columns {
      name = "test_no"
      type = "bigint"
    }

    columns {
      name = "int_qty"
      type = "int"
    }

    columns {
      name = "inv_size"
      type = "int"
    }

    columns {
      name = "week"
      type = "int"
    }

    ser_de_info {
      name = "also whatever"
      parameters = {
        "serialization.format" = "1"
      }
      serialization_library = "org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe"
    }

    skewed_info {
      skewed_column_names = []
      skewed_column_value_location_maps = {}
      skewed_column_values = []
    }
  }
}
resource "aws_athena_database" "database-test-athena-parquet-file" {
  name = "data-test-athena-parquet"
  # This bucket is used for terraform to query for athena config
  bucket = "data-test-athena-parquet"
}

Debug Output

Crash Output

GitHub Gist link: https://gist.github.com/bodonald/b8021e2180b9d15de9e9aceb646857a1

Expected Behavior

terraform apply success after passing the "yes" value

Actual Behavior

Steps to Reproduce

Additional Context

References

ghost commented 4 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-aws#11610 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-aws#11610.

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.