--- policy: /ce/ca/aws/glue/job-spark-graviton-and-version logic: /ce/ca/aws/glue/job-spark-graviton-and-version/prod.logic.yaml executionTime: 2026-12-05T12:03:24.597894412Z generationMs: 63 executionMs: 894 rows: - id: batch-graviton-on-6-0 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 699 actual: 699 conditionText: expected: "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton',\ \ 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c')\ \ == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton',\ \ 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))" actual: "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton',\ \ 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c')\ \ == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton',\ \ 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))" runtimeError: {} - id: streaming-graviton-on-6-0 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 699 actual: 699 conditionText: expected: "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton',\ \ 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c')\ \ == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton',\ \ 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))" actual: "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton',\ \ 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c')\ \ == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton',\ \ 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))" runtimeError: {} - id: batch-graviton-on-6-1 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 599 actual: 599 conditionText: expected: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" actual: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" runtimeError: {} - id: streaming-graviton-on-6-1 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 599 actual: 599 conditionText: expected: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" actual: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" runtimeError: {} - id: batch-graviton-on-future-major match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 599 actual: 599 conditionText: expected: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" actual: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" runtimeError: {} - id: batch-graviton-on-future-minor match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 599 actual: 599 conditionText: expected: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" actual: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" runtimeError: {} - id: batch-non-graviton-on-6-0 match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 799 actual: 799 conditionText: expected: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c'))\ \ || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x',\ \ 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c')))\ \ || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c')\ \ == 'g.025x')" actual: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c'))\ \ || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x',\ \ 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c')))\ \ || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c')\ \ == 'g.025x')" runtimeError: {} - id: non-graviton-on-6-1 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 599 actual: 599 conditionText: expected: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" actual: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" runtimeError: {} - id: non-graviton-on-future-release match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 599 actual: 599 conditionText: expected: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" actual: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" runtimeError: {} - id: non-graviton-on-legacy-release match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 799 actual: 799 conditionText: expected: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c'))\ \ || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x',\ \ 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c')))\ \ || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c')\ \ == 'g.025x')" actual: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c'))\ \ || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x',\ \ 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c')))\ \ || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c')\ \ == 'g.025x')" runtimeError: {} - id: streaming-small-non-graviton match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 799 actual: 799 conditionText: expected: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c'))\ \ || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x',\ \ 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c')))\ \ || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c')\ \ == 'g.025x')" actual: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c'))\ \ || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x',\ \ 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c')))\ \ || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c')\ \ == 'g.025x')" runtimeError: {} - id: standard-non-graviton match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 799 actual: 799 conditionText: expected: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c'))\ \ || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x',\ \ 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c')))\ \ || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c')\ \ == 'g.025x')" actual: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c'))\ \ || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x',\ \ 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c')))\ \ || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c')\ \ == 'g.025x')" runtimeError: {} - id: non-graviton-on-auto match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__glueVersion__c') == 'auto' actual: extract('CA10__glueVersion__c') == 'auto' runtimeError: {} - id: non-graviton-without-version match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 301 actual: 301 conditionText: expected: CA10__glueVersion__c.isEmpty() actual: CA10__glueVersion__c.isEmpty() runtimeError: {} - id: old-version-without-worker match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 800 actual: 800 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: retired-version-without-worker match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 800 actual: 800 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: graviton-on-pre-graviton-release match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 800 actual: 800 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: graviton-on-auto match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__glueVersion__c') == 'auto' actual: extract('CA10__glueVersion__c') == 'auto' runtimeError: {} - id: auto-without-worker match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__glueVersion__c') == 'auto' actual: extract('CA10__glueVersion__c') == 'auto' runtimeError: {} - id: graviton-without-version match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 301 actual: 301 conditionText: expected: CA10__glueVersion__c.isEmpty() actual: CA10__glueVersion__c.isEmpty() runtimeError: {} - id: graviton-with-malformed-version match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 499 actual: 499 conditionText: expected: not(extract('CA10__glueVersion__c').contains('.')) actual: not(extract('CA10__glueVersion__c').contains('.')) runtimeError: {} - id: glue-6-1-without-worker match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 599 actual: 599 conditionText: expected: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" actual: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))" runtimeError: {} - id: streaming-with-batch-graviton-worker match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 800 actual: 800 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: unknown-graviton-worker match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 800 actual: 800 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: ray-worker-on-spark-job match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 800 actual: 800 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: python-shell match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))" actual: "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))" runtimeError: {} - id: ray match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))" actual: "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))" runtimeError: {} - id: unknown-command match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 299 actual: 299 conditionText: expected: "not(setOfText(['glueetl', 'gluestreaming']).contains(extract('CA10__commandName__c')))" actual: "not(setOfText(['glueetl', 'gluestreaming']).contains(extract('CA10__commandName__c')))" runtimeError: {} - id: missing-command match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 101 actual: 101 conditionText: expected: CA10__commandName__c.isEmpty() actual: CA10__commandName__c.isEmpty() runtimeError: {} - id: disappeared-job match: true status: expected: DISAPPEARED actual: DISAPPEARED conditionIndex: expected: 99 actual: 99 conditionText: expected: isDisappeared(CA10__disappearanceTime__c) actual: isDisappeared(CA10__disappearanceTime__c) runtimeError: {} usedFiles: - path: /ce/ca/aws/glue/job-spark-graviton-and-version/policy.yaml md5Hash: 7A9C65DA2C989D29AAC3B242A300A4E5 content: | --- names: full: AWS Glue Spark Job uses a non-Graviton worker on a Glue version below 6.1 contextual: Spark Job uses a non-Graviton worker on a Glue version below 6.1 description: > Identify Spark batch and streaming jobs that use a non-Graviton worker and a Glue release below 6.1 as candidates for a runtime upgrade or a move to Graviton workers. type: COMPLIANCE_POLICY categories: - COST - PERFORMANCE frameworkMappings: - /frameworks/cloudaware/cost-efficiency-and-optimization/resource-optimization - /frameworks/cloudaware/resource-reliability/infrastructure-modernization - path: /ce/ca/aws/glue/job-spark-graviton-and-version/prod.logic.yaml md5Hash: BCF014015A30D0D33D47874BB7918200 content: | --- inputType: CA10__CaAwsGlueJob__c testData: - file: test-data.json importExtracts: - file: /types/CA10__CaAwsGlueJob__c/object.extracts.yaml conditions: - status: INAPPLICABLE currentStateMessage: The job does not use Spark. check: CONTAINS: arg: SET: itemType: TEXT items: - pythonshell - glueray search: EXTRACT: CA10__commandName__c - status: UNDETERMINED currentStateMessage: The job command does not identify a recognized Glue job type. check: NOT: arg: CONTAINS: arg: SET: itemType: TEXT items: - glueetl - gluestreaming search: EXTRACT: CA10__commandName__c - status: INAPPLICABLE currentStateMessage: The Spark job uses automatic upgrades, and its effective Glue version is unavailable in the job definition. check: IS_EQUAL: left: EXTRACT: CA10__glueVersion__c right: TEXT: auto - status: UNDETERMINED currentStateMessage: The job definition contains an unrecognized Glue version format. check: NOT: arg: # AWS uses dotted release identifiers for explicit versions. CONTAINS: arg: EXTRACT: CA10__glueVersion__c search: TEXT: "." - status: COMPLIANT currentStateMessage: The Spark job uses AWS Glue 6.1 or a later release. check: NOT: arg: CONTAINS: arg: SET: itemType: TEXT # AWS Spark releases below the policy target, including retired releases. items: - "0.9" - "1.0" - "2.0" - "3.0" - "4.0" - "5.0" - "5.1" - "6.0" search: EXTRACT: CA10__glueVersion__c - status: COMPLIANT currentStateMessage: The Spark job uses a supported Graviton worker on AWS Glue 6.0. check: AND: args: - IS_EQUAL: left: EXTRACT: CA10__glueVersion__c right: TEXT: "6.0" - OR: args: - CONTAINS: arg: SET: itemType: TEXT items: - g.1x.graviton - g.2x.graviton search: EXTRACT: CA10__workerType__c - AND: args: - IS_EQUAL: left: EXTRACT: CA10__commandName__c right: TEXT: glueetl - CONTAINS: arg: SET: itemType: TEXT items: - g.4x.graviton - g.8x.graviton - g.12x.graviton - g.16x.graviton - r.1x.graviton - r.2x.graviton - r.4x.graviton - r.8x.graviton search: EXTRACT: CA10__workerType__c - status: INCOMPLIANT currentStateMessage: The Spark job uses a non-Graviton worker and an AWS Glue release below 6.1. remediationMessage: Test a migration to Glue 6.1 or later or to a supported Graviton configuration. check: OR: args: - CONTAINS: arg: SET: itemType: TEXT items: - standard - g.1x - g.2x search: EXTRACT: CA10__workerType__c - AND: args: - IS_EQUAL: left: EXTRACT: CA10__commandName__c right: TEXT: glueetl - CONTAINS: arg: SET: itemType: TEXT items: - g.4x - g.8x - g.12x - g.16x - r.1x - r.2x - r.4x - r.8x search: EXTRACT: CA10__workerType__c - AND: args: - IS_EQUAL: left: EXTRACT: CA10__commandName__c right: TEXT: gluestreaming - IS_EQUAL: left: EXTRACT: CA10__workerType__c right: TEXT: g.025x otherwise: status: UNDETERMINED currentStateMessage: The worker type is missing or cannot be verified for the job type and Glue release. - path: /ce/ca/aws/glue/job-spark-graviton-and-version/test-data.json md5Hash: 14C14E439B32757821B3C197FD569699 content: | [ { "Id": "batch-graviton-on-6-0", "expectedResult": { "conditionIndex": 699, "status": "COMPLIANT", "conditionText": "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton', 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton', 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "6.0", "CA10__workerType__c": "G.1X.GRAVITON" }, { "Id": "streaming-graviton-on-6-0", "expectedResult": { "conditionIndex": 699, "status": "COMPLIANT", "conditionText": "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton', 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton', 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "gluestreaming", "CA10__glueVersion__c": "6.0", "CA10__workerType__c": "G.2X.GRAVITON" }, { "Id": "batch-graviton-on-6-1", "expectedResult": { "conditionIndex": 599, "status": "COMPLIANT", "conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "6.1", "CA10__workerType__c": "R.4X.GRAVITON" }, { "Id": "streaming-graviton-on-6-1", "expectedResult": { "conditionIndex": 599, "status": "COMPLIANT", "conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "gluestreaming", "CA10__glueVersion__c": "6.1", "CA10__workerType__c": "G.2X.GRAVITON" }, { "Id": "batch-graviton-on-future-major", "expectedResult": { "conditionIndex": 599, "status": "COMPLIANT", "conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "10.0", "CA10__workerType__c": "G.16X.GRAVITON" }, { "Id": "batch-graviton-on-future-minor", "expectedResult": { "conditionIndex": 599, "status": "COMPLIANT", "conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "6.9", "CA10__workerType__c": "G.1X.GRAVITON" }, { "Id": "batch-non-graviton-on-6-0", "expectedResult": { "conditionIndex": 799, "status": "INCOMPLIANT", "conditionText": "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "6.0", "CA10__workerType__c": "G.1X" }, { "Id": "non-graviton-on-6-1", "expectedResult": { "conditionIndex": 599, "status": "COMPLIANT", "conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "6.1", "CA10__workerType__c": "G.1X" }, { "Id": "non-graviton-on-future-release", "expectedResult": { "conditionIndex": 599, "status": "COMPLIANT", "conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "10.0", "CA10__workerType__c": "R.4X" }, { "Id": "non-graviton-on-legacy-release", "expectedResult": { "conditionIndex": 799, "status": "INCOMPLIANT", "conditionText": "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "5.1", "CA10__workerType__c": "G.8X" }, { "Id": "streaming-small-non-graviton", "expectedResult": { "conditionIndex": 799, "status": "INCOMPLIANT", "conditionText": "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "gluestreaming", "CA10__glueVersion__c": "6.0", "CA10__workerType__c": "G.025X" }, { "Id": "standard-non-graviton", "expectedResult": { "conditionIndex": 799, "status": "INCOMPLIANT", "conditionText": "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "3.0", "CA10__workerType__c": "Standard" }, { "Id": "non-graviton-on-auto", "expectedResult": { "conditionIndex": 399, "status": "INAPPLICABLE", "conditionText": "extract('CA10__glueVersion__c') == 'auto'", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "auto", "CA10__workerType__c": "G.1X" }, { "Id": "non-graviton-without-version", "expectedResult": { "conditionIndex": 301, "status": "UNDETERMINED", "conditionText": "CA10__glueVersion__c.isEmpty()", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": null, "CA10__workerType__c": "G.2X" }, { "Id": "old-version-without-worker", "expectedResult": { "conditionIndex": 800, "status": "UNDETERMINED", "conditionText": "otherwise", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "5.1", "CA10__workerType__c": null }, { "Id": "retired-version-without-worker", "expectedResult": { "conditionIndex": 800, "status": "UNDETERMINED", "conditionText": "otherwise", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "0.9", "CA10__workerType__c": null }, { "Id": "graviton-on-pre-graviton-release", "expectedResult": { "conditionIndex": 800, "status": "UNDETERMINED", "conditionText": "otherwise", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "5.1", "CA10__workerType__c": "G.1X.GRAVITON" }, { "Id": "graviton-on-auto", "expectedResult": { "conditionIndex": 399, "status": "INAPPLICABLE", "conditionText": "extract('CA10__glueVersion__c') == 'auto'", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "auto", "CA10__workerType__c": "G.1X.GRAVITON" }, { "Id": "auto-without-worker", "expectedResult": { "conditionIndex": 399, "status": "INAPPLICABLE", "conditionText": "extract('CA10__glueVersion__c') == 'auto'", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "auto", "CA10__workerType__c": null }, { "Id": "graviton-without-version", "expectedResult": { "conditionIndex": 301, "status": "UNDETERMINED", "conditionText": "CA10__glueVersion__c.isEmpty()", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": null, "CA10__workerType__c": "G.1X.GRAVITON" }, { "Id": "graviton-with-malformed-version", "expectedResult": { "conditionIndex": 499, "status": "UNDETERMINED", "conditionText": "not(extract('CA10__glueVersion__c').contains('.'))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "unexpected", "CA10__workerType__c": "G.1X.GRAVITON" }, { "Id": "glue-6-1-without-worker", "expectedResult": { "conditionIndex": 599, "status": "COMPLIANT", "conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "6.1", "CA10__workerType__c": null }, { "Id": "streaming-with-batch-graviton-worker", "expectedResult": { "conditionIndex": 800, "status": "UNDETERMINED", "conditionText": "otherwise", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "gluestreaming", "CA10__glueVersion__c": "6.0", "CA10__workerType__c": "R.1X.GRAVITON" }, { "Id": "unknown-graviton-worker", "expectedResult": { "conditionIndex": 800, "status": "UNDETERMINED", "conditionText": "otherwise", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "6.0", "CA10__workerType__c": "G.32X.GRAVITON" }, { "Id": "ray-worker-on-spark-job", "expectedResult": { "conditionIndex": 800, "status": "UNDETERMINED", "conditionText": "otherwise", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "6.0", "CA10__workerType__c": "Z.2X" }, { "Id": "python-shell", "expectedResult": { "conditionIndex": 199, "status": "INAPPLICABLE", "conditionText": "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__glueVersion__c": null, "CA10__workerType__c": null }, { "Id": "ray", "expectedResult": { "conditionIndex": 199, "status": "INAPPLICABLE", "conditionText": "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueray", "CA10__glueVersion__c": null, "CA10__workerType__c": "Z.2X" }, { "Id": "unknown-command", "expectedResult": { "conditionIndex": 299, "status": "UNDETERMINED", "conditionText": "not(setOfText(['glueetl', 'gluestreaming']).contains(extract('CA10__commandName__c')))", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "other", "CA10__glueVersion__c": null, "CA10__workerType__c": null }, { "Id": "missing-command", "expectedResult": { "conditionIndex": 101, "status": "UNDETERMINED", "conditionText": "CA10__commandName__c.isEmpty()", "runtimeError": null }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": null, "CA10__glueVersion__c": null, "CA10__workerType__c": null }, { "Id": "disappeared-job", "expectedResult": { "conditionIndex": 99, "status": "DISAPPEARED", "conditionText": "isDisappeared(CA10__disappearanceTime__c)", "runtimeError": null }, "CA10__disappearanceTime__c": "2026-11-30T12:00:00Z", "CA10__commandName__c": "glueetl", "CA10__glueVersion__c": "5.1", "CA10__workerType__c": "G.1X" } ] - path: /types/CA10__CaAwsGlueJob__c/object.extracts.yaml md5Hash: 4F34B9C199B32904C9479602D497906A content: | --- extracts: - name: CA10__commandName__c value: FIELD: path: CA10__commandName__c undeterminedIf: isEmpty: The Glue job command is unavailable. - name: CA10__commandPythonVersion__c value: FIELD: path: CA10__commandPythonVersion__c undeterminedIf: isEmpty: The Glue Python shell version is unavailable. - name: CA10__createdOn__c value: FIELD: path: CA10__createdOn__c undeterminedIf: isEmpty: The Glue job creation date is unavailable. - name: CA10__glueVersion__c value: FIELD: path: CA10__glueVersion__c undeterminedIf: isEmpty: The Glue job version is unavailable. - name: CA10__workerType__c value: FIELD: path: CA10__workerType__c - name: CA10__numCompletedTasksSum7d__c value: FIELD: path: CA10__numCompletedTasksSum7d__c undeterminedIf: isEmpty: The 7-day completed-task count is unavailable. - name: CA10__numCompletedTasksSum14d__c value: FIELD: path: CA10__numCompletedTasksSum14d__c undeterminedIf: isEmpty: The 14-day completed-task count is unavailable. - name: CA10__avgAllCpuSystemLoad14d__c value: FIELD: path: CA10__avgAllCpuSystemLoad14d__c undeterminedIf: isEmpty: The 14-day executor CPU utilization is unavailable. - name: CA10__avgAllJvmHeapUsage14d__c value: FIELD: path: CA10__avgAllJvmHeapUsage14d__c undeterminedIf: isEmpty: The 14-day executor JVM heap utilization is unavailable. - name: CA10__avgDriverCpuSystemLoad14d__c value: FIELD: path: CA10__avgDriverCpuSystemLoad14d__c undeterminedIf: isEmpty: The 14-day driver CPU utilization is unavailable. - name: CA10__avgDriverJvmHeapUsage14d__c value: FIELD: path: CA10__avgDriverJvmHeapUsage14d__c undeterminedIf: isEmpty: The 14-day driver JVM heap utilization is unavailable. script: |- CREATE TEMP FUNCTION mock_ExpectedResult() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "Id" : "batch-graviton-on-6-0", "expectedResult" : { "conditionIndex" : 699, "status" : "COMPLIANT", "conditionText" : "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton', 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton', 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))", "runtimeError" : null } }, { "Id" : "streaming-graviton-on-6-0", "expectedResult" : { "conditionIndex" : 699, "status" : "COMPLIANT", "conditionText" : "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton', 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton', 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))", "runtimeError" : null } }, { "Id" : "batch-graviton-on-6-1", "expectedResult" : { "conditionIndex" : 599, "status" : "COMPLIANT", "conditionText" : "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError" : null } }, { "Id" : "streaming-graviton-on-6-1", "expectedResult" : { "conditionIndex" : 599, "status" : "COMPLIANT", "conditionText" : "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError" : null } }, { "Id" : "batch-graviton-on-future-major", "expectedResult" : { "conditionIndex" : 599, "status" : "COMPLIANT", "conditionText" : "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError" : null } }, { "Id" : "batch-graviton-on-future-minor", "expectedResult" : { "conditionIndex" : 599, "status" : "COMPLIANT", "conditionText" : "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError" : null } }, { "Id" : "batch-non-graviton-on-6-0", "expectedResult" : { "conditionIndex" : 799, "status" : "INCOMPLIANT", "conditionText" : "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", "runtimeError" : null } }, { "Id" : "non-graviton-on-6-1", "expectedResult" : { "conditionIndex" : 599, "status" : "COMPLIANT", "conditionText" : "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError" : null } }, { "Id" : "non-graviton-on-future-release", "expectedResult" : { "conditionIndex" : 599, "status" : "COMPLIANT", "conditionText" : "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError" : null } }, { "Id" : "non-graviton-on-legacy-release", "expectedResult" : { "conditionIndex" : 799, "status" : "INCOMPLIANT", "conditionText" : "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", "runtimeError" : null } }, { "Id" : "streaming-small-non-graviton", "expectedResult" : { "conditionIndex" : 799, "status" : "INCOMPLIANT", "conditionText" : "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", "runtimeError" : null } }, { "Id" : "standard-non-graviton", "expectedResult" : { "conditionIndex" : 799, "status" : "INCOMPLIANT", "conditionText" : "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", "runtimeError" : null } }, { "Id" : "non-graviton-on-auto", "expectedResult" : { "conditionIndex" : 399, "status" : "INAPPLICABLE", "conditionText" : "extract('CA10__glueVersion__c') == 'auto'", "runtimeError" : null } }, { "Id" : "non-graviton-without-version", "expectedResult" : { "conditionIndex" : 301, "status" : "UNDETERMINED", "conditionText" : "CA10__glueVersion__c.isEmpty()", "runtimeError" : null } }, { "Id" : "old-version-without-worker", "expectedResult" : { "conditionIndex" : 800, "status" : "UNDETERMINED", "conditionText" : "otherwise", "runtimeError" : null } }, { "Id" : "retired-version-without-worker", "expectedResult" : { "conditionIndex" : 800, "status" : "UNDETERMINED", "conditionText" : "otherwise", "runtimeError" : null } }, { "Id" : "graviton-on-pre-graviton-release", "expectedResult" : { "conditionIndex" : 800, "status" : "UNDETERMINED", "conditionText" : "otherwise", "runtimeError" : null } }, { "Id" : "graviton-on-auto", "expectedResult" : { "conditionIndex" : 399, "status" : "INAPPLICABLE", "conditionText" : "extract('CA10__glueVersion__c') == 'auto'", "runtimeError" : null } }, { "Id" : "auto-without-worker", "expectedResult" : { "conditionIndex" : 399, "status" : "INAPPLICABLE", "conditionText" : "extract('CA10__glueVersion__c') == 'auto'", "runtimeError" : null } }, { "Id" : "graviton-without-version", "expectedResult" : { "conditionIndex" : 301, "status" : "UNDETERMINED", "conditionText" : "CA10__glueVersion__c.isEmpty()", "runtimeError" : null } }, { "Id" : "graviton-with-malformed-version", "expectedResult" : { "conditionIndex" : 499, "status" : "UNDETERMINED", "conditionText" : "not(extract('CA10__glueVersion__c').contains('.'))", "runtimeError" : null } }, { "Id" : "glue-6-1-without-worker", "expectedResult" : { "conditionIndex" : 599, "status" : "COMPLIANT", "conditionText" : "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", "runtimeError" : null } }, { "Id" : "streaming-with-batch-graviton-worker", "expectedResult" : { "conditionIndex" : 800, "status" : "UNDETERMINED", "conditionText" : "otherwise", "runtimeError" : null } }, { "Id" : "unknown-graviton-worker", "expectedResult" : { "conditionIndex" : 800, "status" : "UNDETERMINED", "conditionText" : "otherwise", "runtimeError" : null } }, { "Id" : "ray-worker-on-spark-job", "expectedResult" : { "conditionIndex" : 800, "status" : "UNDETERMINED", "conditionText" : "otherwise", "runtimeError" : null } }, { "Id" : "python-shell", "expectedResult" : { "conditionIndex" : 199, "status" : "INAPPLICABLE", "conditionText" : "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))", "runtimeError" : null } }, { "Id" : "ray", "expectedResult" : { "conditionIndex" : 199, "status" : "INAPPLICABLE", "conditionText" : "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))", "runtimeError" : null } }, { "Id" : "unknown-command", "expectedResult" : { "conditionIndex" : 299, "status" : "UNDETERMINED", "conditionText" : "not(setOfText(['glueetl', 'gluestreaming']).contains(extract('CA10__commandName__c')))", "runtimeError" : null } }, { "Id" : "missing-command", "expectedResult" : { "conditionIndex" : 101, "status" : "UNDETERMINED", "conditionText" : "CA10__commandName__c.isEmpty()", "runtimeError" : null } }, { "Id" : "disappeared-job", "expectedResult" : { "conditionIndex" : 99, "status" : "DISAPPEARED", "conditionText" : "isDisappeared(CA10__disappearanceTime__c)", "runtimeError" : null } } ]; """; CREATE TEMP FUNCTION mock_CA10__CaAwsGlueJob__c() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "6.0", "CA10__workerType__c" : "G.1X.GRAVITON", "Id" : "batch-graviton-on-6-0" }, { "CA10__commandName__c" : "gluestreaming", "CA10__glueVersion__c" : "6.0", "CA10__workerType__c" : "G.2X.GRAVITON", "Id" : "streaming-graviton-on-6-0" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "6.1", "CA10__workerType__c" : "R.4X.GRAVITON", "Id" : "batch-graviton-on-6-1" }, { "CA10__commandName__c" : "gluestreaming", "CA10__glueVersion__c" : "6.1", "CA10__workerType__c" : "G.2X.GRAVITON", "Id" : "streaming-graviton-on-6-1" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "10.0", "CA10__workerType__c" : "G.16X.GRAVITON", "Id" : "batch-graviton-on-future-major" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "6.9", "CA10__workerType__c" : "G.1X.GRAVITON", "Id" : "batch-graviton-on-future-minor" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "6.0", "CA10__workerType__c" : "G.1X", "Id" : "batch-non-graviton-on-6-0" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "6.1", "CA10__workerType__c" : "G.1X", "Id" : "non-graviton-on-6-1" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "10.0", "CA10__workerType__c" : "R.4X", "Id" : "non-graviton-on-future-release" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "5.1", "CA10__workerType__c" : "G.8X", "Id" : "non-graviton-on-legacy-release" }, { "CA10__commandName__c" : "gluestreaming", "CA10__glueVersion__c" : "6.0", "CA10__workerType__c" : "G.025X", "Id" : "streaming-small-non-graviton" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "3.0", "CA10__workerType__c" : "Standard", "Id" : "standard-non-graviton" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "auto", "CA10__workerType__c" : "G.1X", "Id" : "non-graviton-on-auto" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : null, "CA10__workerType__c" : "G.2X", "Id" : "non-graviton-without-version" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "5.1", "CA10__workerType__c" : null, "Id" : "old-version-without-worker" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "0.9", "CA10__workerType__c" : null, "Id" : "retired-version-without-worker" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "5.1", "CA10__workerType__c" : "G.1X.GRAVITON", "Id" : "graviton-on-pre-graviton-release" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "auto", "CA10__workerType__c" : "G.1X.GRAVITON", "Id" : "graviton-on-auto" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "auto", "CA10__workerType__c" : null, "Id" : "auto-without-worker" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : null, "CA10__workerType__c" : "G.1X.GRAVITON", "Id" : "graviton-without-version" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "unexpected", "CA10__workerType__c" : "G.1X.GRAVITON", "Id" : "graviton-with-malformed-version" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "6.1", "CA10__workerType__c" : null, "Id" : "glue-6-1-without-worker" }, { "CA10__commandName__c" : "gluestreaming", "CA10__glueVersion__c" : "6.0", "CA10__workerType__c" : "R.1X.GRAVITON", "Id" : "streaming-with-batch-graviton-worker" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "6.0", "CA10__workerType__c" : "G.32X.GRAVITON", "Id" : "unknown-graviton-worker" }, { "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "6.0", "CA10__workerType__c" : "Z.2X", "Id" : "ray-worker-on-spark-job" }, { "CA10__commandName__c" : "pythonshell", "CA10__glueVersion__c" : null, "CA10__workerType__c" : null, "Id" : "python-shell" }, { "CA10__commandName__c" : "glueray", "CA10__glueVersion__c" : null, "CA10__workerType__c" : "Z.2X", "Id" : "ray" }, { "CA10__commandName__c" : "other", "CA10__glueVersion__c" : null, "CA10__workerType__c" : null, "Id" : "unknown-command" }, { "CA10__commandName__c" : null, "CA10__glueVersion__c" : null, "CA10__workerType__c" : null, "Id" : "missing-command" }, { "CA10__disappearanceTime__c" : new Date("2026-11-30T12:00:00Z"), "CA10__commandName__c" : "glueetl", "CA10__glueVersion__c" : "5.1", "CA10__workerType__c" : "G.1X", "Id" : "disappeared-job" } ]; """; CREATE TEMP FUNCTION process_CA10__CaAwsGlueJob__c( obj STRUCT< CA10__disappearanceTime__c TIMESTAMP, CA10__commandName__c STRING, CA10__glueVersion__c STRING, CA10__workerType__c STRING, Id STRING >, snapshotTime TIMESTAMP ) RETURNS STRUCT DETERMINISTIC LANGUAGE js AS r""" var TextLib = new function () { this.normalize = function(arg) { return arg == null ? '' : arg.replace(/\s+/g, ' ').trim().toLowerCase(); }; this.isEmpty = function(arg) { return this.normalize(arg) == ''; }; this.isNotEmpty = function(arg) { return this.normalize(arg) != ''; }; this.equal = function(left, right) { return this.normalize(left) == this.normalize(right); }; this.notEqual = function(left, right) { return this.normalize(left) != this.normalize(right); }; this.startsWith = function(arg, substring) { return this.normalize(arg).startsWith(this.normalize(substring)); }; this.endsWith = function(arg, substring) { return this.normalize(arg).endsWith(this.normalize(substring)); }; this.contains = function(arg, substring) { return this.normalize(arg).includes(this.normalize(substring)); }; this.containsAll = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.every(sub => normalizedArg.includes(this.normalize(sub))); }; this.containsAny = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.some(sub => normalizedArg.includes(this.normalize(sub))); }; }(); var BytesLib = new function () { this.normalize = function(arg) { return arg == null ? '' : arg; }; this.isEmpty = function(arg) { return this.normalize(arg) == ''; }; this.isNotEmpty = function(arg) { return this.normalize(arg) != ''; }; this.equal = function(left, right) { return this.normalize(left) == this.normalize(right); }; this.notEqual = function(left, right) { return this.normalize(left) != this.normalize(right); }; this.startsWith = function(arg, substring) { return this.normalize(arg).startsWith(this.normalize(substring)); }; this.endsWith = function(arg, substring) { return this.normalize(arg).endsWith(this.normalize(substring)); }; this.contains = function(arg, substring) { return this.normalize(arg).includes(this.normalize(substring)); }; this.containsAll = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.every(sub => normalizedArg.includes(this.normalize(sub))); }; this.containsAny = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.some(sub => normalizedArg.includes(this.normalize(sub))); }; }(); var CollectionLib = new function () { this.parse = function(arg, separator, skipEmpty, skipDuplicates, sort, normalize) { if (arg == null) return []; let parts = arg.split(separator); return this.fromArray(parts, skipEmpty, skipDuplicates, sort, normalize); }; this.fromArray = function(arr, skipEmpty, skipDuplicates, sort, normalize) { if (arr == null) return []; let result = []; let seen = new Set(); arr.forEach(el => { let normalized = normalize ? TextLib.normalize(el) : BytesLib.normalize(el); if (!skipEmpty || (normalize ? TextLib.isNotEmpty(el) : BytesLib.isNotEmpty(el))) { if (!skipDuplicates || !seen.has(normalized)) { if (skipDuplicates) seen.add(normalized); result.push(normalized); } } }); if (sort) result.sort(); return result; }; this.equal = function(left, right) { left = left == null ? [] : left; right = right == null ? [] : right; if (left.length !== right.length) return false; for (let i = 0; i < left.length; i++) { if (left[i] !== right[i]) return false; } return true; }; this.notEqual = function(left, right) { return !this.equal(left, right); }; this.size = function(collection) { return collection == null ? 0 : collection.length; }; this.startsWith = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search); return collection[0] === normalizedSearch; }; this.endsWith = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search); return collection[collection.length - 1] === normalizedSearch; }; this.contains = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; return collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search)); }; this.containsAll = function(collection, searchArray, normalize) { if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false; return searchArray.every(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search))); }; this.containsAny = function(collection, searchArray, normalize) { if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false; return searchArray.some(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search))); }; }(); var references1 = []; // condition[0], conditionIndex:[0..99] references1.push('Deleted From AWS [CA10__disappearanceTime__c]: ' + obj.CA10__disappearanceTime__c); if (obj.CA10__disappearanceTime__c != null) { return {status: 'DISAPPEARED', conditionIndex: 99, conditionText: "isDisappeared(CA10__disappearanceTime__c)", currentStateMessage: "Object is deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[1], conditionIndex:[100..199] function fieldChecked4() { if (TextLib.isEmpty(obj.CA10__commandName__c)) { throw new Error("UNDETERMINED condition:101", {cause: {status: 'UNDETERMINED', conditionIndex: 101, conditionText: "CA10__commandName__c.isEmpty()", currentStateMessage: "The Glue job command is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__commandName__c; } function extract3() { if (!this.out) { this.out = fieldChecked4(); } return this.out; }; references1.push('Command: Name [obj.CA10__commandName__c]: ' + obj.CA10__commandName__c); try { if (CollectionLib.contains(CollectionLib.fromArray(['pythonshell', 'glueray'], true, true, true, true), extract3.call(extract3), true)) { return {status: 'INAPPLICABLE', conditionIndex: 199, conditionText: "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))", currentStateMessage: "The job does not use Spark.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[2], conditionIndex:[200..299] function fieldChecked7() { if (TextLib.isEmpty(obj.CA10__commandName__c)) { throw new Error("UNDETERMINED condition:201", {cause: {status: 'UNDETERMINED', conditionIndex: 201, conditionText: "CA10__commandName__c.isEmpty()", currentStateMessage: "The Glue job command is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__commandName__c; } function extract6() { if (!this.out) { this.out = fieldChecked7(); } return this.out; }; try { if (!CollectionLib.contains(CollectionLib.fromArray(['glueetl', 'gluestreaming'], true, true, true, true), extract6.call(extract6), true)) { return {status: 'UNDETERMINED', conditionIndex: 299, conditionText: "not(setOfText(['glueetl', 'gluestreaming']).contains(extract('CA10__commandName__c')))", currentStateMessage: "The job command does not identify a recognized Glue job type.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[3], conditionIndex:[300..399] function fieldChecked10() { if (TextLib.isEmpty(obj.CA10__glueVersion__c)) { throw new Error("UNDETERMINED condition:301", {cause: {status: 'UNDETERMINED', conditionIndex: 301, conditionText: "CA10__glueVersion__c.isEmpty()", currentStateMessage: "The Glue job version is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__glueVersion__c; } function extract9() { if (!this.out) { this.out = fieldChecked10(); } return this.out; }; references1.push('Glue Version [obj.CA10__glueVersion__c]: ' + obj.CA10__glueVersion__c); try { if (TextLib.equal(extract9.call(extract9), 'auto')) { return {status: 'INAPPLICABLE', conditionIndex: 399, conditionText: "extract('CA10__glueVersion__c') == 'auto'", currentStateMessage: "The Spark job uses automatic upgrades, and its effective Glue version is unavailable in the job definition.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[4], conditionIndex:[400..499] function fieldChecked13() { if (TextLib.isEmpty(obj.CA10__glueVersion__c)) { throw new Error("UNDETERMINED condition:401", {cause: {status: 'UNDETERMINED', conditionIndex: 401, conditionText: "CA10__glueVersion__c.isEmpty()", currentStateMessage: "The Glue job version is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__glueVersion__c; } function extract12() { if (!this.out) { this.out = fieldChecked13(); } return this.out; }; try { if (!TextLib.contains(extract12.call(extract12), '.')) { return {status: 'UNDETERMINED', conditionIndex: 499, conditionText: "not(extract('CA10__glueVersion__c').contains('.'))", currentStateMessage: "The job definition contains an unrecognized Glue version format.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[5], conditionIndex:[500..599] function fieldChecked16() { if (TextLib.isEmpty(obj.CA10__glueVersion__c)) { throw new Error("UNDETERMINED condition:501", {cause: {status: 'UNDETERMINED', conditionIndex: 501, conditionText: "CA10__glueVersion__c.isEmpty()", currentStateMessage: "The Glue job version is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__glueVersion__c; } function extract15() { if (!this.out) { this.out = fieldChecked16(); } return this.out; }; try { if (!CollectionLib.contains(CollectionLib.fromArray(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0'], true, true, true, true), extract15.call(extract15), true)) { return {status: 'COMPLIANT', conditionIndex: 599, conditionText: "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))", currentStateMessage: "The Spark job uses AWS Glue 6.1 or a later release.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[6], conditionIndex:[600..699] function fieldChecked19() { if (TextLib.isEmpty(obj.CA10__glueVersion__c)) { throw new Error("UNDETERMINED condition:601", {cause: {status: 'UNDETERMINED', conditionIndex: 601, conditionText: "CA10__glueVersion__c.isEmpty()", currentStateMessage: "The Glue job version is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__glueVersion__c; } function extract18() { if (!this.out) { this.out = fieldChecked19(); } return this.out; }; function extract21() { if (!this.out) { this.out = obj.CA10__workerType__c; } return this.out; }; function fieldChecked25() { if (TextLib.isEmpty(obj.CA10__commandName__c)) { throw new Error("UNDETERMINED condition:602", {cause: {status: 'UNDETERMINED', conditionIndex: 602, conditionText: "CA10__commandName__c.isEmpty()", currentStateMessage: "The Glue job command is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__commandName__c; } function extract24() { if (!this.out) { this.out = fieldChecked25(); } return this.out; }; references1.push('Worker Type [obj.CA10__workerType__c]: ' + obj.CA10__workerType__c); try { if (TextLib.equal(extract18.call(extract18), '6.0') && (CollectionLib.contains(CollectionLib.fromArray(['g.1x.graviton', 'g.2x.graviton'], true, true, true, true), extract21.call(extract21), true) || (TextLib.equal(extract24.call(extract24), 'glueetl') && CollectionLib.contains(CollectionLib.fromArray(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton', 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton'], true, true, true, true), extract21.call(extract21), true)))) { return {status: 'COMPLIANT', conditionIndex: 699, conditionText: "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton', 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton', 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))", currentStateMessage: "The Spark job uses a supported Graviton worker on AWS Glue 6.0.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[7], conditionIndex:[700..799] function extract28() { if (!this.out) { this.out = obj.CA10__workerType__c; } return this.out; }; function fieldChecked32() { if (TextLib.isEmpty(obj.CA10__commandName__c)) { throw new Error("UNDETERMINED condition:701", {cause: {status: 'UNDETERMINED', conditionIndex: 701, conditionText: "CA10__commandName__c.isEmpty()", currentStateMessage: "The Glue job command is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__commandName__c; } function extract31() { if (!this.out) { this.out = fieldChecked32(); } return this.out; }; try { if (CollectionLib.contains(CollectionLib.fromArray(['standard', 'g.1x', 'g.2x'], true, true, true, true), extract28.call(extract28), true) || (TextLib.equal(extract31.call(extract31), 'glueetl') && CollectionLib.contains(CollectionLib.fromArray(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x'], true, true, true, true), extract28.call(extract28), true)) || (TextLib.equal(extract31.call(extract31), 'gluestreaming') && TextLib.equal(extract28.call(extract28), 'g.025x'))) { return {status: 'INCOMPLIANT', conditionIndex: 799, conditionText: "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')", currentStateMessage: "The Spark job uses a non-Graviton worker and an AWS Glue release below 6.1.", currentStateReferences: references1.join('\n'), remediation: "Test a migration to Glue 6.1 or later or to a supported Graviton configuration.", runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } return {status: 'UNDETERMINED', conditionIndex: 800, conditionText: "otherwise", currentStateMessage: "The worker type is missing or cannot be verified for the job type and Glue release.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; """; SELECT expectedResult.Id as Id, IF ( IFNULL(expectedResult.expectedResult.status, '') = IFNULL(sObject.result.status, '') AND IFNULL(expectedResult.expectedResult.conditionIndex, -1) = IFNULL(sObject.result.conditionIndex, -1) AND IFNULL(expectedResult.expectedResult.conditionText, '') = IFNULL(sObject.result.conditionText, '') AND IFNULL(expectedResult.expectedResult.runtimeError, '') = IFNULL(sObject.result.runtimeError, ''), "MATCH", "FAIL" ) as match, expectedResult.expectedResult.status as expectedStatus, sObject.result.status as actualStatus, expectedResult.expectedResult.conditionIndex as expectedConditionIndex, sObject.result.conditionIndex as actualConditionIndex, expectedResult.expectedResult.conditionText as expectedConditionText, sObject.result.conditionText as actualConditionText, expectedResult.expectedResult.runtimeError as expectedRuntimeError, sObject.result.runtimeError as actualRuntimeError FROM UNNEST(mock_ExpectedResult()) expectedResult LEFT JOIN ( SELECT sObject.CA10__disappearanceTime__c AS CA10__disappearanceTime__c, sObject.CA10__commandName__c AS CA10__commandName__c, sObject.CA10__glueVersion__c AS CA10__glueVersion__c, sObject.CA10__workerType__c AS CA10__workerType__c, sObject.Id AS Id, process_CA10__CaAwsGlueJob__c( STRUCT( sObject.CA10__disappearanceTime__c AS CA10__disappearanceTime__c, sObject.CA10__commandName__c AS CA10__commandName__c, sObject.CA10__glueVersion__c AS CA10__glueVersion__c, sObject.CA10__workerType__c AS CA10__workerType__c, sObject.Id AS Id ), sObject.context.snapshotTime ) as result FROM UNNEST(mock_CA10__CaAwsGlueJob__c()) AS sObject ) sObject ON sObject.Id = expectedResult.Id;