Skip to content

Struggling to define schema overrides (on taps) #6

@amotl

Description

@amotl

Hi again,

while working on MeltanoLabs/target-postgres#251, I am struggling to define schema override rules. For development purposes, I am using tap-singer-jsonl.

Within meltano.yml, I've defined a schema override rule on the tap-singer-jsonl element.

schema:
  my_table:
    value:
      type: "foo"

After running meltano invoke like:

meltano --log-level=debug invoke tap-singer-jsonl

I can see in .meltano/run/tap-singer-jsonl/tap.properties.json:

{
  "streams": [
    {
      "tap_stream_id": "array_number",
      "key_properties": [
        "id"
      ],
      "schema": {
        "properties": {
          "id": {
            "type": "integer"
          },
          "value": {
            "type": "foo"
          }
        },
        "type": "object",
        "required": [
          "id"
        ]
      },
      "metadata": {},
      "selected": true
    }
  ]
}

NB: metadata has been compressed.

However, it looks like it does not have any influence on the output of the tap at all. The schema override rule is not being taken into consideration.

With kind regards,
Andreas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions