From 55d336815152a8c4f65f5c72d9ccd8ca7f834759 Mon Sep 17 00:00:00 2001 From: edwardfeng-db Date: Mon, 2 Sep 2024 16:36:13 +0200 Subject: [PATCH] update --- .../workflows/{schema.yml => diff-schema.yml} | 0 .github/workflows/validate-schema.yml | 21 +++++++++++++++++++ .../resource_quality_monitor.go | 1 + 3 files changed, 22 insertions(+) rename .github/workflows/{schema.yml => diff-schema.yml} (100%) create mode 100644 .github/workflows/validate-schema.yml diff --git a/.github/workflows/schema.yml b/.github/workflows/diff-schema.yml similarity index 100% rename from .github/workflows/schema.yml rename to .github/workflows/diff-schema.yml diff --git a/.github/workflows/validate-schema.yml b/.github/workflows/validate-schema.yml new file mode 100644 index 0000000000..0feccd7f5c --- /dev/null +++ b/.github/workflows/validate-schema.yml @@ -0,0 +1,21 @@ +name: Validate Schema Build + +on: + pull_request: + types: [opened, synchronize, edited] + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run Make Schema + run: | + if [ $(make schema) != "0" ]; then + echo "make schema failed" + exit 1 + else + echo "make schema passed" + fi \ No newline at end of file diff --git a/internal/providers/pluginfw/resources/qualitymonitor/resource_quality_monitor.go b/internal/providers/pluginfw/resources/qualitymonitor/resource_quality_monitor.go index 20d86a0426..86ef1a7501 100644 --- a/internal/providers/pluginfw/resources/qualitymonitor/resource_quality_monitor.go +++ b/internal/providers/pluginfw/resources/qualitymonitor/resource_quality_monitor.go @@ -72,6 +72,7 @@ func (r *QualityMonitorResource) Schema(ctx context.Context, req resource.Schema c.SetRequired("assets_dir") c.SetRequired("output_schema_name") c.SetReadOnly("monitor_version") + c.SetRequired("table_name") c.SetReadOnly("drift_metrics_table_name") c.SetReadOnly("profile_metrics_table_name") c.SetReadOnly("status")