You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create Glue catalog table using this module and I have tables with multiple partitions such as below.
{name= "schemaid" , type = "string"}
{name= "batchtimestamp" , type = "string"}
Per variable definition, it's just a map of strings and I believe I can pass only 1 key value pair as below.
partition_keys = {
name= "schemaid" ,
type = "string"
}
If I try to define the list of string maps or put map of string maps, it fails
For a local defined as list:
partition_keys = [
{name= "schemaid" , type = "string"},
{name= "batchtimestamp" , type = "string"}
]
For a local defined as map of string maps:
partition_keys = {
{name= "schemaid" , type = "string"},
{name= "batchtimestamp" , type = "string"}
}
Can you please help to see if that's a bug or I need to define the partition keys differently. Also I am trying to use same multiple columns for partition Indexes too and facing same challenges.
Expected Behavior
while using aws_glue_catalog_table resource directly, I could successfully build the table using below code for multiple partition keys and multiple indexes out of those partition keys.
Steps to Reproduce
define local as one of the below way and try creating table with module and partition_keys = local.partition_keys
partition_keys = [
{name= "schemaid" , type = "string"},
{name= "batchtimestamp" , type = "string"}
]
partition_keys = {
{name= "schemaid" , type = "string"},
{name= "batchtimestamp" , type = "string"}
}
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
Hello,
I am trying to create Glue catalog table using this module and I have tables with multiple partitions such as below.
{name= "schemaid" , type = "string"}
{name= "batchtimestamp" , type = "string"}
Per variable definition, it's just a map of strings and I believe I can pass only 1 key value pair as below.
partition_keys = {
name= "schemaid" ,
type = "string"
}
If I try to define the list of string maps or put map of string maps, it fails
For a local defined as list:
partition_keys = [
{name= "schemaid" , type = "string"},
{name= "batchtimestamp" , type = "string"}
]
For a local defined as map of string maps:
partition_keys = {
{name= "schemaid" , type = "string"},
{name= "batchtimestamp" , type = "string"}
}
Can you please help to see if that's a bug or I need to define the partition keys differently. Also I am trying to use same multiple columns for partition Indexes too and facing same challenges.
Expected Behavior
while using aws_glue_catalog_table resource directly, I could successfully build the table using below code for multiple partition keys and multiple indexes out of those partition keys.
Steps to Reproduce
define local as one of the below way and try creating table with module and partition_keys = local.partition_keys
partition_keys = [
{name= "schemaid" , type = "string"},
{name= "batchtimestamp" , type = "string"}
]
partition_keys = {
{name= "schemaid" , type = "string"},
{name= "batchtimestamp" , type = "string"}
}
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: