Skip to content

Commit

Permalink
Merge pull request #17346 from ms-henglu/issue-17275
Browse files Browse the repository at this point in the history
`azurerm_data_factory_dataset_snowflake`: fix table can't be loaded
  • Loading branch information
tombuildsstuff authored Jun 25, 2022
2 parents eed3962 + 4faa1a4 commit 6d3f8aa
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func resourceDataFactoryDatasetSnowflakeCreateUpdate(d *pluginsdk.ResourceData,
SnowflakeDatasetTypeProperties: &snowflakeDatasetProperties,
LinkedServiceName: linkedService,
Description: &description,
Schema: make([]interface{}, 0),
}

if v, ok := d.GetOk("folder"); ok {
Expand All @@ -225,10 +226,8 @@ func resourceDataFactoryDatasetSnowflakeCreateUpdate(d *pluginsdk.ResourceData,
snowflakeTableset.Parameters = expandDataFactoryParameters(v.(map[string]interface{}))
}

if v, ok := d.GetOk("annotations"); ok {
annotations := v.([]interface{})
snowflakeTableset.Annotations = &annotations
}
annotations := d.Get("annotations").([]interface{})
snowflakeTableset.Annotations = &annotations

if v, ok := d.GetOk("additional_properties"); ok {
snowflakeTableset.AdditionalProperties = v.(map[string]interface{})
Expand Down

0 comments on commit 6d3f8aa

Please sign in to comment.