Skip to content

Commit c4b4334

Browse files
committed
filter out plan for cloud test
1 parent 90ec92f commit c4b4334

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

acceptance/bundle/resources/grants/schemas/update/out.plan2.direct.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
"browse_only": false,
77
"catalog_name": "main",
88
"catalog_type": "MANAGED_CATALOG",
9-
"created_at": [UNIX_TIME_MILLIS][0],
9+
"created_at": [UNIX_TIME_MILLIS],
1010
"created_by": "[USERNAME]",
1111
"full_name": "main.schema_grants_[UNIQUE_NAME]",
1212
"name": "schema_grants_[UNIQUE_NAME]",
13-
"owner": "[USERNAME]",
14-
"updated_at": [UNIX_TIME_MILLIS][0]
13+
"owner": "[USERNAME]"
1514
}
1615
},
1716
"resources.schemas.grants_schema.grants": {

acceptance/bundle/resources/grants/schemas/update/script

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ update_file.py databricks.yml '["USE_SCHEMA"]' '["CREATE_VOLUME", "MANAGE"]'
99
update_file.py databricks.yml USE_SCHEMA APPLY_TAG
1010

1111
# different on cloud vs local due to remote state
12-
trace $CLI bundle debug plan > out.plan2.$DATABRICKS_BUNDLE_ENGINE.json
12+
trace $CLI bundle debug plan > out.plan2.$DATABRICKS_BUNDLE_ENGINE.json
13+
jq 'walk(if type == "object" then del(.effective_predictive_optimization_flag, .enable_predictive_optimization, .metastore_id, .schema_id, .updated_at, .updated_by) else . end)' out.plan2.$DATABRICKS_BUNDLE_ENGINE.json > tmp.json && mv tmp.json out.plan2.$DATABRICKS_BUNDLE_ENGINE.json
1314
trace print_requests.py /permissions > out.plan2.requests.$DATABRICKS_BUNDLE_ENGINE.json
1415
trace $CLI bundle deploy
1516
trace print_requests.py /permissions > out.deploy2.requests.$DATABRICKS_BUNDLE_ENGINE.json

0 commit comments

Comments
 (0)