Skip to main content

Used with Great_Expectations to store validation results in an Oracle Database.

Project description

ge-store-validations-oracle-plugin

Steps to use the OracleStoreValidationResultsAction from the plugin

Install this plugin by pasting store_validations_oracle.py from great_expectations/plugins in your corresponding great_expectations/plugins folder.

  1. Install the plugin by pip install store-validations-oracle. You can put store-validations-oracle in the requirements.txt file for CI/CD operations.

  2. In your required checkpoint, add the following action to your checkpoint .yml file.

  - name: store_validations_oracle
    action:
      class_name: OracleStoreValidationResultsAction
      module_name: store_validations_oracle.store_validations_oracle
      username: ${USERNAME}
      password: ${PASSWORD}
      hostname: ${HOSTNAME}
      port: ${PORT}
      service_name: ${SERVICE_NAME}
      table_name: ${TABLE_NAME}
  1. In your uncommited/config_variables.yml file or if you are using environment variables, add the following variables related to the Oracle Database account:

    • USERNAME
    • PASSWORD
    • TABLE_NAME

    Either:

    • HOSTNAME
    • PORT (defaults to 1521)
    • SERVICE_NAME (defaults to ORCL)

    Or:

    • CONNECTION_STRING
  2. If you already have a given table in oracledb, make sure table has below schema.( If you don't have table script will create one , with required schema. )

CREATE TABLE TABLE1 
(
BATCH_KEY VARCHAR2(100) NOT NULL 
, META CLOB 
, EVALUATION_PARAMETERS CLOB 
, STATISTICS CLOB 
, SUCCESS VARCHAR2(10) 
, RESULT CLOB 
);

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

store_validations_oracle-0.1.4.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

store_validations_oracle-0.1.4-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page