Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no schema in --discover #84

Open
sjcotto opened this issue Jul 24, 2022 · 1 comment
Open

no schema in --discover #84

sjcotto opened this issue Jul 24, 2022 · 1 comment

Comments

@sjcotto
Copy link

sjcotto commented Jul 24, 2022

Hi,

I'm not able to generate the correct schema in the discovery / etl process, here is a simple example

Using mongo 5, standalone server.

I have this collection

{ "_id": { "$oid": "62c4373ebed325d5aecd7598" }, "name": "Todos los Hosts ", "description": "Este grupo será usado para todos los hosts", "createdBy": { "$oid": "62c425f81e1177ed03fb693b" }, "createdAt": { "$date": { "$numberLong": "1657026366116" } }, "updatedAt": { "$date": { "$numberLong": "1657026366116" } }, "__v": 0 }

meltano invoke tap-mongodb --discover > ~/catalog.json

outputs the following schema

{ "table_name": "groups", "stream": "groups", "metadata": [ { "breadcrumb": [], "metadata": { "table-key-properties": [ "_id" ], "database-name": "go-product", "row-count": 1, "is-view": false, "valid-replication-keys": [ "_id" ] } } ], "tap_stream_id": "go-product-groups", "schema": { "type": "object" } }

@sjcotto
Copy link
Author

sjcotto commented Jul 24, 2022

so the schema is output like "schema": { "type": "object" }

i was expecting the keys of each column

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant