--- policy: /ce/ca/aws/glue/job-python-shell-runtime-support logic: /ce/ca/aws/glue/job-python-shell-runtime-support/prod.logic.yaml executionTime: 2026-10-30T18:09:37.51213994Z generationMs: 70 executionMs: 1137 rows: - id: python2-retired match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 499 actual: 499 conditionText: expected: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" actual: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" runtimeError: {} - id: python2-high-glue-does-not-rescue match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 499 actual: 499 conditionText: expected: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" actual: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" runtimeError: {} - id: python39-low-glue match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: python39-missing-glue match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: python3-ambiguous-low-glue match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__commandPythonVersion__c') == '3' actual: extract('CA10__commandPythonVersion__c') == '3' runtimeError: {} - id: python3-ambiguous-high-glue match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__commandPythonVersion__c') == '3' actual: extract('CA10__commandPythonVersion__c') == '3' runtimeError: {} - id: explicit-python36-retired match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 499 actual: 499 conditionText: expected: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" actual: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" runtimeError: {} - id: future-python311 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: malformed-runtime match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: missing-runtime match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 301 actual: 301 conditionText: expected: CA10__commandPythonVersion__c.isEmpty() actual: CA10__commandPythonVersion__c.isEmpty() runtimeError: {} - id: empty-runtime match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 301 actual: 301 conditionText: expected: CA10__commandPythonVersion__c.isEmpty() actual: CA10__commandPythonVersion__c.isEmpty() runtimeError: {} - id: whitespace-runtime match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 301 actual: 301 conditionText: expected: CA10__commandPythonVersion__c.isEmpty() actual: CA10__commandPythonVersion__c.isEmpty() runtimeError: {} - id: spark-python2-excluded match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" actual: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" runtimeError: {} - id: streaming-missing-runtime-excluded match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" actual: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" runtimeError: {} - id: ray-excluded match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" actual: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" runtimeError: {} - id: unknown-command match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__commandName__c') != 'pythonshell' actual: extract('CA10__commandName__c') != 'pythonshell' 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: deleted-python2 match: true status: expected: DISAPPEARED actual: DISAPPEARED conditionIndex: expected: 99 actual: 99 conditionText: expected: isDisappeared(CA10__disappearanceTime__c) actual: isDisappeared(CA10__disappearanceTime__c) runtimeError: {} - id: python2-missing-glue match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 499 actual: 499 conditionText: expected: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" actual: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" runtimeError: {} - id: python3-ambiguous-missing-glue match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__commandPythonVersion__c') == '3' actual: extract('CA10__commandPythonVersion__c') == '3' runtimeError: {} - id: spark-missing-runtime-excluded match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" actual: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" runtimeError: {} - id: ray-missing-runtime-excluded match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" actual: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" runtimeError: {} - id: empty-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: whitespace-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: missing-command-and-runtime 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: unknown-command-missing-runtime match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__commandName__c') != 'pythonshell' actual: extract('CA10__commandName__c') != 'pythonshell' runtimeError: {} - id: observed-custom-command match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__commandName__c') != 'pythonshell' actual: extract('CA10__commandName__c') != 'pythonshell' runtimeError: {} - id: deleted-incomplete-inventory match: true status: expected: DISAPPEARED actual: DISAPPEARED conditionIndex: expected: 99 actual: 99 conditionText: expected: isDisappeared(CA10__disappearanceTime__c) actual: isDisappeared(CA10__disappearanceTime__c) runtimeError: {} - id: normalized-python2 match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 499 actual: 499 conditionText: expected: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" actual: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" runtimeError: {} - id: normalized-python39 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: command-prefix-is-not-shell match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__commandName__c') != 'pythonshell' actual: extract('CA10__commandName__c') != 'pythonshell' runtimeError: {} - id: runtime-prefix-is-not-python2 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: future-python-3-10 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: future-python-3-13 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: future-python-4-0 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 500 actual: 500 conditionText: expected: otherwise actual: otherwise runtimeError: {} usedFiles: - path: /ce/ca/aws/glue/job-python-shell-runtime-support/policy.yaml md5Hash: DABB496B71E1FAFFD4495AA6A277BF8F content: | --- names: full: AWS Glue Python Shell Job uses a runtime past end of support contextual: Python Shell Job uses a runtime past end of support description: > Migrate Python shell job definitions configured with a verified runtime past AWS end of support to reduce security and job execution risks. type: BEST_PRACTICE categories: - RELIABILITY frameworkMappings: - /frameworks/cloudaware/resource-reliability/infrastructure-modernization - path: /ce/ca/aws/glue/job-python-shell-runtime-support/prod.logic.yaml md5Hash: CE13CA45ABDD987CC3B166DB6528A7F3 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 Python shell. check: CONTAINS: arg: SET: itemType: TEXT items: - glueetl - gluestreaming - glueray search: EXTRACT: CA10__commandName__c - status: UNDETERMINED currentStateMessage: The job type is unknown, so Python shell support cannot be assessed. check: NOT_EQUAL: left: EXTRACT: CA10__commandName__c right: TEXT: pythonshell - status: INAPPLICABLE currentStateMessage: The job's exact Python version is unknown, so its support status cannot be confirmed. check: IS_EQUAL: left: EXTRACT: CA10__commandPythonVersion__c right: TEXT: "3" - status: INCOMPLIANT currentStateMessage: The job uses a Python shell version that AWS no longer supports. remediationMessage: Migrate and test the job on a supported Python shell version, or retire it if it is no longer needed. check: CONTAINS: arg: SET: itemType: TEXT items: - "2" - "3.6" search: EXTRACT: CA10__commandPythonVersion__c otherwise: status: COMPLIANT currentStateMessage: The job uses a supported Python shell version. - path: /ce/ca/aws/glue/job-python-shell-runtime-support/test-data.json md5Hash: 063A5349F51F50A4C18E651AA63027FF content: | [ { "Id": "python2-retired", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 499, "conditionText": "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "python2-high-glue-does-not-rescue", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 499, "conditionText": "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "6.0" }, { "Id": "python39-low-glue", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3.9", "CA10__glueVersion__c": "0.9" }, { "Id": "python39-missing-glue", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3.9", "CA10__glueVersion__c": null }, { "Id": "python3-ambiguous-low-glue", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 399, "conditionText": "extract('CA10__commandPythonVersion__c') == '3'" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3", "CA10__glueVersion__c": "1.0" }, { "Id": "python3-ambiguous-high-glue", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 399, "conditionText": "extract('CA10__commandPythonVersion__c') == '3'" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3", "CA10__glueVersion__c": "6.0" }, { "Id": "explicit-python36-retired", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 499, "conditionText": "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3.6", "CA10__glueVersion__c": "1.0" }, { "Id": "future-python311", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3.11", "CA10__glueVersion__c": "1.0" }, { "Id": "malformed-runtime", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "python2", "CA10__glueVersion__c": "1.0" }, { "Id": "missing-runtime", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 301, "conditionText": "CA10__commandPythonVersion__c.isEmpty()" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": null, "CA10__glueVersion__c": "1.0" }, { "Id": "empty-runtime", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 301, "conditionText": "CA10__commandPythonVersion__c.isEmpty()" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "", "CA10__glueVersion__c": "1.0" }, { "Id": "whitespace-runtime", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 301, "conditionText": "CA10__commandPythonVersion__c.isEmpty()" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": " ", "CA10__glueVersion__c": "1.0" }, { "Id": "spark-python2-excluded", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "streaming-missing-runtime-excluded", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "gluestreaming", "CA10__commandPythonVersion__c": null, "CA10__glueVersion__c": "1.0" }, { "Id": "ray-excluded", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueray", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "unknown-command", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 299, "conditionText": "extract('CA10__commandName__c') != 'pythonshell'" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "custom", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "missing-command", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 101, "conditionText": "CA10__commandName__c.isEmpty()" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": null, "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "deleted-python2", "expectedResult": { "status": "DISAPPEARED", "runtimeError": null, "conditionIndex": 99, "conditionText": "isDisappeared(CA10__disappearanceTime__c)" }, "CA10__disappearanceTime__c": "2026-10-01T00:00:00Z", "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "python2-missing-glue", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 499, "conditionText": "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": null }, { "Id": "python3-ambiguous-missing-glue", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 399, "conditionText": "extract('CA10__commandPythonVersion__c') == '3'" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3", "CA10__glueVersion__c": null }, { "Id": "spark-missing-runtime-excluded", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueetl", "CA10__commandPythonVersion__c": null, "CA10__glueVersion__c": "1.0" }, { "Id": "ray-missing-runtime-excluded", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "glueray", "CA10__commandPythonVersion__c": null, "CA10__glueVersion__c": "1.0" }, { "Id": "empty-command", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 101, "conditionText": "CA10__commandName__c.isEmpty()" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "whitespace-command", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 101, "conditionText": "CA10__commandName__c.isEmpty()" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": " \t\n", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "missing-command-and-runtime", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 101, "conditionText": "CA10__commandName__c.isEmpty()" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": null, "CA10__commandPythonVersion__c": null, "CA10__glueVersion__c": "1.0" }, { "Id": "unknown-command-missing-runtime", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 299, "conditionText": "extract('CA10__commandName__c') != 'pythonshell'" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "custom", "CA10__commandPythonVersion__c": null, "CA10__glueVersion__c": "1.0" }, { "Id": "observed-custom-command", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 299, "conditionText": "extract('CA10__commandName__c') != 'pythonshell'" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "TransformData", "CA10__commandPythonVersion__c": "", "CA10__glueVersion__c": "1.0" }, { "Id": "deleted-incomplete-inventory", "expectedResult": { "status": "DISAPPEARED", "runtimeError": null, "conditionIndex": 99, "conditionText": "isDisappeared(CA10__disappearanceTime__c)" }, "CA10__disappearanceTime__c": "2026-10-01T00:00:00Z", "CA10__commandName__c": null, "CA10__commandPythonVersion__c": null, "CA10__glueVersion__c": "1.0" }, { "Id": "normalized-python2", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 499, "conditionText": "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": " PYTHONSHELL\t", "CA10__commandPythonVersion__c": " 2\n", "CA10__glueVersion__c": "1.0" }, { "Id": "normalized-python39", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "\tPythonShell ", "CA10__commandPythonVersion__c": " 3.9 ", "CA10__glueVersion__c": null }, { "Id": "command-prefix-is-not-shell", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 299, "conditionText": "extract('CA10__commandName__c') != 'pythonshell'" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell-extra", "CA10__commandPythonVersion__c": "2", "CA10__glueVersion__c": "1.0" }, { "Id": "runtime-prefix-is-not-python2", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "2.7", "CA10__glueVersion__c": "1.0" }, { "Id": "future-python-3-10", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3.10", "CA10__glueVersion__c": null }, { "Id": "future-python-3-13", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "3.13", "CA10__glueVersion__c": null }, { "Id": "future-python-4-0", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 500, "conditionText": "otherwise" }, "CA10__disappearanceTime__c": null, "CA10__commandName__c": "pythonshell", "CA10__commandPythonVersion__c": "4.0", "CA10__glueVersion__c": null } ] - path: /types/CA10__CaAwsGlueJob__c/object.extracts.yaml md5Hash: 032530E743A93629B7D4A9F64EE7F99E 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__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" : "python2-retired", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 499, "conditionText" : "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" } }, { "Id" : "python2-high-glue-does-not-rescue", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 499, "conditionText" : "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" } }, { "Id" : "python39-low-glue", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } }, { "Id" : "python39-missing-glue", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } }, { "Id" : "python3-ambiguous-low-glue", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 399, "conditionText" : "extract('CA10__commandPythonVersion__c') == '3'" } }, { "Id" : "python3-ambiguous-high-glue", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 399, "conditionText" : "extract('CA10__commandPythonVersion__c') == '3'" } }, { "Id" : "explicit-python36-retired", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 499, "conditionText" : "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" } }, { "Id" : "future-python311", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } }, { "Id" : "malformed-runtime", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } }, { "Id" : "missing-runtime", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 301, "conditionText" : "CA10__commandPythonVersion__c.isEmpty()" } }, { "Id" : "empty-runtime", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 301, "conditionText" : "CA10__commandPythonVersion__c.isEmpty()" } }, { "Id" : "whitespace-runtime", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 301, "conditionText" : "CA10__commandPythonVersion__c.isEmpty()" } }, { "Id" : "spark-python2-excluded", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" } }, { "Id" : "streaming-missing-runtime-excluded", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" } }, { "Id" : "ray-excluded", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" } }, { "Id" : "unknown-command", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 299, "conditionText" : "extract('CA10__commandName__c') != 'pythonshell'" } }, { "Id" : "missing-command", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 101, "conditionText" : "CA10__commandName__c.isEmpty()" } }, { "Id" : "deleted-python2", "expectedResult" : { "status" : "DISAPPEARED", "runtimeError" : null, "conditionIndex" : 99, "conditionText" : "isDisappeared(CA10__disappearanceTime__c)" } }, { "Id" : "python2-missing-glue", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 499, "conditionText" : "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" } }, { "Id" : "python3-ambiguous-missing-glue", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 399, "conditionText" : "extract('CA10__commandPythonVersion__c') == '3'" } }, { "Id" : "spark-missing-runtime-excluded", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" } }, { "Id" : "ray-missing-runtime-excluded", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))" } }, { "Id" : "empty-command", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 101, "conditionText" : "CA10__commandName__c.isEmpty()" } }, { "Id" : "whitespace-command", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 101, "conditionText" : "CA10__commandName__c.isEmpty()" } }, { "Id" : "missing-command-and-runtime", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 101, "conditionText" : "CA10__commandName__c.isEmpty()" } }, { "Id" : "unknown-command-missing-runtime", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 299, "conditionText" : "extract('CA10__commandName__c') != 'pythonshell'" } }, { "Id" : "observed-custom-command", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 299, "conditionText" : "extract('CA10__commandName__c') != 'pythonshell'" } }, { "Id" : "deleted-incomplete-inventory", "expectedResult" : { "status" : "DISAPPEARED", "runtimeError" : null, "conditionIndex" : 99, "conditionText" : "isDisappeared(CA10__disappearanceTime__c)" } }, { "Id" : "normalized-python2", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 499, "conditionText" : "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))" } }, { "Id" : "normalized-python39", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } }, { "Id" : "command-prefix-is-not-shell", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 299, "conditionText" : "extract('CA10__commandName__c') != 'pythonshell'" } }, { "Id" : "runtime-prefix-is-not-python2", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } }, { "Id" : "future-python-3-10", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } }, { "Id" : "future-python-3-13", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } }, { "Id" : "future-python-4-0", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 500, "conditionText" : "otherwise" } } ]; """; CREATE TEMP FUNCTION mock_CA10__CaAwsGlueJob__c() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "2", "Id" : "python2-retired" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "2", "Id" : "python2-high-glue-does-not-rescue" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3.9", "Id" : "python39-low-glue" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3.9", "Id" : "python39-missing-glue" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3", "Id" : "python3-ambiguous-low-glue" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3", "Id" : "python3-ambiguous-high-glue" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3.6", "Id" : "explicit-python36-retired" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3.11", "Id" : "future-python311" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "python2", "Id" : "malformed-runtime" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : null, "Id" : "missing-runtime" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "", "Id" : "empty-runtime" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : " ", "Id" : "whitespace-runtime" }, { "CA10__commandName__c" : "glueetl", "CA10__commandPythonVersion__c" : "2", "Id" : "spark-python2-excluded" }, { "CA10__commandName__c" : "gluestreaming", "CA10__commandPythonVersion__c" : null, "Id" : "streaming-missing-runtime-excluded" }, { "CA10__commandName__c" : "glueray", "CA10__commandPythonVersion__c" : "2", "Id" : "ray-excluded" }, { "CA10__commandName__c" : "custom", "CA10__commandPythonVersion__c" : "2", "Id" : "unknown-command" }, { "CA10__commandName__c" : null, "CA10__commandPythonVersion__c" : "2", "Id" : "missing-command" }, { "CA10__disappearanceTime__c" : new Date("2026-10-01T00:00:00Z"), "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "2", "Id" : "deleted-python2" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "2", "Id" : "python2-missing-glue" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3", "Id" : "python3-ambiguous-missing-glue" }, { "CA10__commandName__c" : "glueetl", "CA10__commandPythonVersion__c" : null, "Id" : "spark-missing-runtime-excluded" }, { "CA10__commandName__c" : "glueray", "CA10__commandPythonVersion__c" : null, "Id" : "ray-missing-runtime-excluded" }, { "CA10__commandName__c" : "", "CA10__commandPythonVersion__c" : "2", "Id" : "empty-command" }, { "CA10__commandName__c" : " \t\n", "CA10__commandPythonVersion__c" : "2", "Id" : "whitespace-command" }, { "CA10__commandName__c" : null, "CA10__commandPythonVersion__c" : null, "Id" : "missing-command-and-runtime" }, { "CA10__commandName__c" : "custom", "CA10__commandPythonVersion__c" : null, "Id" : "unknown-command-missing-runtime" }, { "CA10__commandName__c" : "TransformData", "CA10__commandPythonVersion__c" : "", "Id" : "observed-custom-command" }, { "CA10__disappearanceTime__c" : new Date("2026-10-01T00:00:00Z"), "CA10__commandName__c" : null, "CA10__commandPythonVersion__c" : null, "Id" : "deleted-incomplete-inventory" }, { "CA10__commandName__c" : " PYTHONSHELL\t", "CA10__commandPythonVersion__c" : " 2\n", "Id" : "normalized-python2" }, { "CA10__commandName__c" : "\tPythonShell ", "CA10__commandPythonVersion__c" : " 3.9 ", "Id" : "normalized-python39" }, { "CA10__commandName__c" : "pythonshell-extra", "CA10__commandPythonVersion__c" : "2", "Id" : "command-prefix-is-not-shell" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "2.7", "Id" : "runtime-prefix-is-not-python2" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3.10", "Id" : "future-python-3-10" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "3.13", "Id" : "future-python-3-13" }, { "CA10__commandName__c" : "pythonshell", "CA10__commandPythonVersion__c" : "4.0", "Id" : "future-python-4-0" } ]; """; CREATE TEMP FUNCTION process_CA10__CaAwsGlueJob__c( obj STRUCT< CA10__disappearanceTime__c TIMESTAMP, CA10__commandName__c STRING, CA10__commandPythonVersion__c STRING, Id STRING >, snapshotTime TIMESTAMP ) RETURNS STRUCT DETERMINISTIC LANGUAGE js AS r""" 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 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 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 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(['glueetl', 'gluestreaming', 'glueray'], true, true, true, true), extract3.call(extract3), true)) { return {status: 'INAPPLICABLE', conditionIndex: 199, conditionText: "setOfText(['glueetl', 'gluestreaming', 'glueray']).contains(extract('CA10__commandName__c'))", currentStateMessage: "The job does not use Python shell.", 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 (TextLib.notEqual(extract6.call(extract6), 'pythonshell')) { return {status: 'UNDETERMINED', conditionIndex: 299, conditionText: "extract('CA10__commandName__c') != 'pythonshell'", currentStateMessage: "The job type is unknown, so Python shell support cannot be assessed.", 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__commandPythonVersion__c)) { throw new Error("UNDETERMINED condition:301", {cause: {status: 'UNDETERMINED', conditionIndex: 301, conditionText: "CA10__commandPythonVersion__c.isEmpty()", currentStateMessage: "The Glue Python shell version is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__commandPythonVersion__c; } function extract9() { if (!this.out) { this.out = fieldChecked10(); } return this.out; }; references1.push('Command: Python Version [obj.CA10__commandPythonVersion__c]: ' + obj.CA10__commandPythonVersion__c); try { if (TextLib.equal(extract9.call(extract9), '3')) { return {status: 'INAPPLICABLE', conditionIndex: 399, conditionText: "extract('CA10__commandPythonVersion__c') == '3'", currentStateMessage: "The job's exact Python version is unknown, so its support status cannot be confirmed.", 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__commandPythonVersion__c)) { throw new Error("UNDETERMINED condition:401", {cause: {status: 'UNDETERMINED', conditionIndex: 401, conditionText: "CA10__commandPythonVersion__c.isEmpty()", currentStateMessage: "The Glue Python shell version is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__commandPythonVersion__c; } function extract12() { if (!this.out) { this.out = fieldChecked13(); } return this.out; }; try { if (CollectionLib.contains(CollectionLib.fromArray(['2', '3.6'], true, true, true, true), extract12.call(extract12), true)) { return {status: 'INCOMPLIANT', conditionIndex: 499, conditionText: "setOfText(['2', '3.6']).contains(extract('CA10__commandPythonVersion__c'))", currentStateMessage: "The job uses a Python shell version that AWS no longer supports.", currentStateReferences: references1.join('\n'), remediation: "Migrate and test the job on a supported Python shell version, or retire it if it is no longer needed.", runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } return {status: 'COMPLIANT', conditionIndex: 500, conditionText: "otherwise", currentStateMessage: "The job uses a supported Python shell version.", 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__commandPythonVersion__c AS CA10__commandPythonVersion__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__commandPythonVersion__c AS CA10__commandPythonVersion__c, sObject.Id AS Id ), sObject.context.snapshotTime ) as result FROM UNNEST(mock_CA10__CaAwsGlueJob__c()) AS sObject ) sObject ON sObject.Id = expectedResult.Id;