Code Monkey home page Code Monkey logo

connector-expected-records's Introduction

Connector Expected Records

This repository contains a tool for managing expected records for an Airbyte source connector.

Usage

To run the project, you must execute it in the root of a source connector. You can use one of the following commands:

  • check: Checks the connection.
  • list: Lists available streams.
  • generate: Generates expected records. You can use --all, --select, or --stream flag with a stream name to generate records for all, multiple, or a single stream respectively.
  • compare: Compares newly read records to old expected records using DeepDiff. This command requires the --stream flag with a stream name and --pk flag with the primary key type.
  • update: Similar to compare, but also enables updating individual records.

Getting Started

  1. Clone this repository to your local machine:
git clone https://github.com/pnilan/connector-expected-records.git
  1. Navigate to the repository directory:
cd connector-expected-records
  1. Ensure you have the necessary dependencies installed. You might need to install them using:
pip install -r requirements.txt
  1. Execute the desired command in the root of your source connector.

Limitations

  • Assumes source connector is setup correctly, currently provides no checks for directories/files.
  • Fails when attempting to use on streams which are not already within the primary configured catalog. So if --select flag is used but one selected stream is not in the catalog, the process will fail when it gets to the point of generating records for that stream.
  • The tool uses the deepdiff library for comparing records as a result cannot be run inside of a connector's virtual env.

connector-expected-records's People

Contributors

pnilan avatar

Watchers

 avatar

connector-expected-records's Issues

Bug: Breaks if attempting to generate/compare/etc streams that aren't already in the main configured catalog

The individual configured catalogs are generated from pulling out the object from the main configured catalog, so if there is a stream not included in the configured catalog (like if it was being bypassed in acceptance test config) and you use --all flag or select it manually, it will throw exception. There's no teardown either so leftover individual configured catalogs will remain in the folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.