
Cockroach
BETAFeature List
✓ Metadata
✓ Data Quality
✓ Data Profiler
✓ Auto-Classification
✕ Query Usage
✕ dbt
✕ Owners
✕ Lineage
✕ Column-level Lineage
✕ Tags
✕ Stored Procedures
Requirements
Python Requirements
To run the Cockroach ingestion, you will need to install:Metadata Ingestion
All connectors are defined as JSON Schemas. Here you can find the structure to create a connection to Cockroach. In order to create and run a Metadata Ingestion workflow, we will follow the steps to create a YAML configuration able to connect to the source, process the Entities if needed, and reach the OpenMetadata server. The workflow is modeled around the following JSON Schema1. Define the YAML Config
2. Run with the CLI
First, we will need to save the YAML file. Afterward, and with all requirements installed, we can run:Data Quality
Adding Data Quality Test Cases from yaml config
When creating a JSON config for a test workflow the source configuration is very simple.serviceName (this name needs to be unique) and entityFullyQualifiedName (the entity for which we’ll be executing tests against) keys.
Once you have defined your source configuration you’ll need to define te processor configuration.
"orm-test-runner". For accepted test definition names and parameter value names refer to the tests page.
You can keep your YAML config as simple as follows if the table already has tests.
Key reference:
forceUpdate: if the test case exists (base on the test case name) for the entity, implements the strategy to follow when running the test (i.e. whether or not to update parameters)testCases: list of test cases to add to the entity referenced. Note that we will execute all the tests present in the Table.name: test case nametestDefinitionName: test definitioncolumnName: only applies to column test. The name of the column to run the test againstparameterValues: parameter values of the test
sink and workflowConfig will have the same settings as the ingestion and profiler workflow.
Full yaml config example
How to Run Tests
To run the tests from the CLI execute the following commandSecuring Cockroach Connection with SSL in OpenMetadata
To configure SSL for secure connections between OpenMetadata and a Cockroach database, Cockroach offers various SSL modes, each providing different levels of connection security. When running the ingestion process externally, specify the SSL mode to be used for the Cockroach connection, such asprefer, verify-ca, allow, and others. Once you’ve chosen the SSL mode, provide the CA certificate for SSL validation (caCertificate). Only the CA certificate is required for SSL validation in Cockroach.