From 209a99f70b2e5a6962855368c9b2b3b03fa849bc Mon Sep 17 00:00:00 2001 From: Prateek Arora Date: Tue, 17 Dec 2024 17:16:27 -0800 Subject: [PATCH] Fix typo and add schema to test schema return value --- resources/dw/virtualwarehouse/impala/model_impala_vw.go | 2 +- resources/dw/virtualwarehouse/impala/resource_impala_vw_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/dw/virtualwarehouse/impala/model_impala_vw.go b/resources/dw/virtualwarehouse/impala/model_impala_vw.go index e5ee9730..47e8d8ff 100644 --- a/resources/dw/virtualwarehouse/impala/model_impala_vw.go +++ b/resources/dw/virtualwarehouse/impala/model_impala_vw.go @@ -33,7 +33,7 @@ type resourceModel struct { } func (p *resourceModel) setFromDescribeVwResponse(resp *models.DescribeVwResponse) { - p.ID = types.StringValue(resp.Vw.DbcID) + p.ID = types.StringValue(resp.Vw.ID) p.DatabaseCatalogID = types.StringValue(resp.Vw.DbcID) p.Name = types.StringValue(resp.Vw.Name) p.Status = types.StringValue(resp.Vw.Status) diff --git a/resources/dw/virtualwarehouse/impala/resource_impala_vw_test.go b/resources/dw/virtualwarehouse/impala/resource_impala_vw_test.go index 3ff12246..4f79a8bd 100644 --- a/resources/dw/virtualwarehouse/impala/resource_impala_vw_test.go +++ b/resources/dw/virtualwarehouse/impala/resource_impala_vw_test.go @@ -36,6 +36,7 @@ import ( ) var testImpalaSchema = schema.Schema{ + MarkdownDescription: "A Impala Virtual Warehouse is service which is able to run low-latency SQL queries.", Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Computed: true,