From f6626d0c6b30bc12971c85242c187dd10e9b68d2 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Wed, 25 Oct 2023 03:30:57 -0700 Subject: [PATCH] remove license --- pkg/resources/testdata/view_1a.sql | 5 +---- pkg/resources/testdata/view_1b.sql | 5 +---- pkg/resources/testdata/view_2a.sql | 5 +---- pkg/resources/testdata/view_2b.sql | 6 ++---- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/pkg/resources/testdata/view_1a.sql b/pkg/resources/testdata/view_1a.sql index e4e2e9db39..8b47ddf2f2 100644 --- a/pkg/resources/testdata/view_1a.sql +++ b/pkg/resources/testdata/view_1a.sql @@ -1,4 +1 @@ --- Copyright (c) HashiCorp, Inc. --- SPDX-License-Identifier: MIT - -SELECT RAW:"Asset_Panda_Number"::NUMBER as ASSET_PANDA_NUMBER, RAW:"is_locked"::BOOLEAN as IS_LOCKED, RAW:"id"::VARCHAR as ID, RAW:"Date_Added"::TIMESTAMP_TZ as DATE_ADDED, RAW:"Storage_Capacity"::VARCHAR as STORAGE_CAPACITY, RAW:"Asset_Tag_Number"::VARCHAR as ASSET_TAG_NUMBER, RAW:"is_deletable"::BOOLEAN as IS_DELETABLE, RAW:"has_audit_history"::BOOLEAN as HAS_AUDIT_HISTORY, RAW:"Purchase_From"::VARCHAR as PURCHASE_FROM, RAW:"Department"::VARIANT as DEPARTMENT, RAW:"display_with_secondary"::VARCHAR as DISPLAY_WITH_SECONDARY, RAW:"object_appreciation"::BOOLEAN as OBJECT_APPRECIATION, RAW:"Status"::VARIANT as STATUS, RAW:"Purchase_date"::DATE as PURCHASE_DATE, RAW:"Yubikey_Identifier"::VARCHAR as YUBIKEY_IDENTIFIER, RAW:"display_name"::VARCHAR as DISPLAY_NAME, RAW:"Brand"::VARCHAR as BRAND, RAW:"Assigned_To"::VARIANT as ASSIGNED_TO, RAW:"share_url"::VARCHAR as SHARE_URL, RAW:"object_version_ids"::VARIANT as OBJECT_VERSION_IDS, RAW:"Creation_Date"::DATE as CREATION_DATE, RAW:"Created_By"::VARCHAR as CREATED_BY, RAW:"purchase_price"::FLOAT as PURCHASE_PRICE, RAW:"next_service"::DATE as NEXT_SERVICE, RAW:"building"::VARIANT as BUILDING, RAW:"category"::VARIANT as CATEGORY, RAW:"description"::VARCHAR as DESCRIPTION, RAW:"changed_by"::VARCHAR as CHANGED_BY, RAW:"wireless_status"::VARCHAR as WIRELESS_STATUS, RAW:"created_at"::TIMESTAMP_TZ as CREATED_AT, RAW:"gps_coordinates"::VARIANT as GPS_COORDINATES, RAW:"updated_at"::TIMESTAMP_TZ as UPDATED_AT, RAW:"loaner_pool"::BOOLEAN as LOANER_POOL, RAW:"default_attachment"::VARIANT as DEFAULT_ATTACHMENT, RAW:"room"::VARIANT as ROOM, RAW:"notes"::VARCHAR as NOTES, RAW:"object_depreciation"::BOOLEAN as OBJECT_DEPRECIATION, RAW:"is_editable"::BOOLEAN as IS_EDITABLE, RAW:"wifi_mac_address"::VARCHAR as WIFI_MAC_ADDRESS, RAW:"change_date"::DATE as CHANGE_DATE, RAW:"display_size"::VARCHAR as DISPLAY_SIZE, RAW:"operating_system"::VARCHAR as OPERATING_SYSTEM, RAW:"serial"::VARCHAR as SERIAL, RAW:"end_of_life_date"::DATE as END_OF_LIFE_DATE, RAW:"imei_meid"::VARCHAR as IMEI_MEID, RAW:"model"::VARCHAR as MODEL, RAW:"mac_address"::VARCHAR as MAC_ADDRESS, RAW:"entity"::VARIANT as ENTITY, RAW:"PO"::VARCHAR as PO FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; \ No newline at end of file +SELECT RAW:"Asset_Panda_Number"::NUMBER as ASSET_PANDA_NUMBER, RAW:"is_locked"::BOOLEAN as IS_LOCKED, RAW:"id"::VARCHAR as ID, RAW:"Date_Added"::TIMESTAMP_TZ as DATE_ADDED, RAW:"Storage_Capacity"::VARCHAR as STORAGE_CAPACITY, RAW:"Asset_Tag_Number"::VARCHAR as ASSET_TAG_NUMBER, RAW:"is_deletable"::BOOLEAN as IS_DELETABLE, RAW:"has_audit_history"::BOOLEAN as HAS_AUDIT_HISTORY, RAW:"Purchase_From"::VARCHAR as PURCHASE_FROM, RAW:"Department"::VARIANT as DEPARTMENT, RAW:"display_with_secondary"::VARCHAR as DISPLAY_WITH_SECONDARY, RAW:"object_appreciation"::BOOLEAN as OBJECT_APPRECIATION, RAW:"Status"::VARIANT as STATUS, RAW:"Purchase_date"::DATE as PURCHASE_DATE, RAW:"Yubikey_Identifier"::VARCHAR as YUBIKEY_IDENTIFIER, RAW:"display_name"::VARCHAR as DISPLAY_NAME, RAW:"Brand"::VARCHAR as BRAND, RAW:"Assigned_To"::VARIANT as ASSIGNED_TO, RAW:"share_url"::VARCHAR as SHARE_URL, RAW:"object_version_ids"::VARIANT as OBJECT_VERSION_IDS, RAW:"Creation_Date"::DATE as CREATION_DATE, RAW:"Created_By"::VARCHAR as CREATED_BY, RAW:"purchase_price"::FLOAT as PURCHASE_PRICE, RAW:"next_service"::DATE as NEXT_SERVICE, RAW:"building"::VARIANT as BUILDING, RAW:"category"::VARIANT as CATEGORY, RAW:"description"::VARCHAR as DESCRIPTION, RAW:"changed_by"::VARCHAR as CHANGED_BY, RAW:"wireless_status"::VARCHAR as WIRELESS_STATUS, RAW:"created_at"::TIMESTAMP_TZ as CREATED_AT, RAW:"gps_coordinates"::VARIANT as GPS_COORDINATES, RAW:"updated_at"::TIMESTAMP_TZ as UPDATED_AT, RAW:"loaner_pool"::BOOLEAN as LOANER_POOL, RAW:"default_attachment"::VARIANT as DEFAULT_ATTACHMENT, RAW:"room"::VARIANT as ROOM, RAW:"notes"::VARCHAR as NOTES, RAW:"object_depreciation"::BOOLEAN as OBJECT_DEPRECIATION, RAW:"is_editable"::BOOLEAN as IS_EDITABLE, RAW:"wifi_mac_address"::VARCHAR as WIFI_MAC_ADDRESS, RAW:"change_date"::DATE as CHANGE_DATE, RAW:"display_size"::VARCHAR as DISPLAY_SIZE, RAW:"operating_system"::VARCHAR as OPERATING_SYSTEM, RAW:"serial"::VARCHAR as SERIAL, RAW:"end_of_life_date"::DATE as END_OF_LIFE_DATE, RAW:"imei_meid"::VARCHAR as IMEI_MEID, RAW:"model"::VARCHAR as MODEL, RAW:"mac_address"::VARCHAR as MAC_ADDRESS, RAW:"entity"::VARIANT as ENTITY, RAW:"PO"::VARCHAR as PO FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; diff --git a/pkg/resources/testdata/view_1b.sql b/pkg/resources/testdata/view_1b.sql index 629c7f5529..b44467136e 100644 --- a/pkg/resources/testdata/view_1b.sql +++ b/pkg/resources/testdata/view_1b.sql @@ -1,6 +1,3 @@ --- Copyright (c) HashiCorp, Inc. --- SPDX-License-Identifier: MIT - SELECT RAW:"Asset_Panda_Number"::NUMBER as ASSET_PANDA_NUMBER, RAW:"is_locked"::BOOLEAN as IS_LOCKED, @@ -51,4 +48,4 @@ SELECT RAW:"mac_address"::VARCHAR as MAC_ADDRESS, RAW:"entity"::VARIANT as ENTITY, RAW:"PO"::VARCHAR as PO - FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; \ No newline at end of file + FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; diff --git a/pkg/resources/testdata/view_2a.sql b/pkg/resources/testdata/view_2a.sql index 8214cc4c47..b4190323f6 100644 --- a/pkg/resources/testdata/view_2a.sql +++ b/pkg/resources/testdata/view_2a.sql @@ -1,4 +1 @@ --- Copyright (c) HashiCorp, Inc. --- SPDX-License-Identifier: MIT - -SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, * FROM ( SELECT parse_json(CONFIGURATION:configRuleList) AS SRC, * FROM "SNOWALERT"."DATA"."AWS_CONFIG_DEFAULT_EVENTS_CONNECTION" WHERE RESOURCE_TYPE = 'AWS::Config::ResourceCompliance' ), lateral flatten(input => SRC) \ No newline at end of file +SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, * FROM ( SELECT parse_json(CONFIGURATION:configRuleList) AS SRC, * FROM "SNOWALERT"."DATA"."AWS_CONFIG_DEFAULT_EVENTS_CONNECTION" WHERE RESOURCE_TYPE = 'AWS::Config::ResourceCompliance' ), lateral flatten(input => SRC) diff --git a/pkg/resources/testdata/view_2b.sql b/pkg/resources/testdata/view_2b.sql index 25f9121721..c7f17d0a83 100644 --- a/pkg/resources/testdata/view_2b.sql +++ b/pkg/resources/testdata/view_2b.sql @@ -1,7 +1,5 @@ --- Copyright (c) HashiCorp, Inc. --- SPDX-License-Identifier: MIT - SELECT +SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, * @@ -11,4 +9,4 @@ * FROM "SNOWALERT"."DATA"."AWS_CONFIG_DEFAULT_EVENTS_CONNECTION" WHERE RESOURCE_TYPE = 'AWS::Config::ResourceCompliance' - ), lateral flatten(input => SRC) \ No newline at end of file + ), lateral flatten(input => SRC)