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

Redshift push ignores schema #3651

Closed
metavee opened this issue Jun 13, 2023 · 0 comments · Fixed by #3671
Closed

Redshift push ignores schema #3651

metavee opened this issue Jun 13, 2023 · 0 comments · Fixed by #3671

Comments

@metavee
Copy link
Contributor

metavee commented Jun 13, 2023

Expected Behavior

When writing to a Redshift push source, the table is written to under the correct schema.

Current Behavior

Even if schema is specified in the data source, data is pushed to a table in the default schema.

You can trace this through the code:

Steps to reproduce

  • define a redshiftsource where the schema is set to something other than the default schema
  • define a pushsource
  • push some data to it
  • observe a new table getting created under the default schema
abc_source = RedshiftSource(
    name="abc",
    table="abc",
    timestamp_field="event_timestamp",
    created_timestamp_column="proctime",
)

abc_push_source = PushSource(
    name="abc_push_source", batch_source=abc_source
)

# ... push some data in

Specifications

  • Version: v0.31.1
  • Platform: Linux x64
  • Subsystem:

Possible Solution

In offline_write_batch, construct a fully-qualified table name using the schema in the options, if present.

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

Successfully merging a pull request may close this issue.

1 participant