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

datasource airbyte_connection fails to provide a list of selected fields #139

Open
jonseymour opened this issue Sep 13, 2024 · 0 comments
Open

Comments

@jonseymour
Copy link

jonseymour commented Sep 13, 2024

Scenario

data "airbyte_connection" "extract" {
  connection_id = <some-connection-id>
}

Expected result

data.airbyte_connection.extract.configurations.streams.<stream>.selected_fields contains exactly the list of selected fields in the configured <stream> of the <some-connection-id> connection.

Actual Result

data.airbyte_connection.extract.selected_fields is the empty list, otherwise known as []

The empty list has these unhelpful properties:

  • it doesn't have any elements
  • it can't be used to distinguish between fields which are selected, but are INEXPLICABLY not in the list AND
  • fields that have not been selected and arguably, should not be in the list of selected fields

Therefore, as currently implemented, the selected_fields output SERVES NO USEFUL PURPOSE

If the provider is incapable of provising an accurate list of selected fields, it should not provide one at all. Then the consumers of the provider won't have to waste time attempting to usefully consume a list that is always empty and thus PROVIDES NO USEFUL, BUT HIGHLY MISLEADING output.

This makes this datasource beyond useless.

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