Title: Redshift push ignores schema · Issue #3651 · feast-dev/feast · GitHub
Open Graph Title: Redshift push ignores schema · Issue #3651 · feast-dev/feast
X Title: Redshift push ignores schema · Issue #3651 · feast-dev/feast
Description: 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 t...
Open Graph Description: 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 tabl...
X Description: 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 tabl...
Opengraph URL: https://github.com/feast-dev/feast/issues/3651
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Redshift push ignores schema","articleBody":"## Expected Behavior \r\n\r\nWhen writing to a Redshift _push source_, the table is written to under the correct schema.\r\n\r\n## Current Behavior\r\n\r\nEven if `schema` is [specified in the data source](https://github.com/feast-dev/feast/blob/c474ccdd23ca8161de5e2958f0a12826c020dc44/sdk/python/feast/infra/offline_stores/redshift_source.py#L52), data is pushed to a table in the default schema.\r\n\r\nYou can trace this through the code:\r\n\r\n- [RedshiftOfflineStore.offline_write_batch(...)](https://github.com/feast-dev/feast/blob/c474ccdd23ca8161de5e2958f0a12826c020dc44/sdk/python/feast/infra/offline_stores/redshift.py#L332-L375)\r\n- [aws_utils.upload_arrow_table_to_redshift(...)](https://github.com/feast-dev/feast/blob/c474ccdd23ca8161de5e2958f0a12826c020dc44/sdk/python/feast/infra/utils/aws_utils.py#L287-L380)\r\n\r\n## Steps to reproduce\r\n\r\n- define a redshiftsource where the schema is set to something other than the default schema\r\n- define a pushsource\r\n- push some data to it\r\n- observe a new table getting created under the default schema\r\n\r\n```\r\nabc_source = RedshiftSource(\r\n name=\"abc\",\r\n table=\"abc\",\r\n timestamp_field=\"event_timestamp\",\r\n created_timestamp_column=\"proctime\",\r\n)\r\n\r\nabc_push_source = PushSource(\r\n name=\"abc_push_source\", batch_source=abc_source\r\n)\r\n\r\n# ... push some data in\r\n```\r\n\r\n### Specifications\r\n\r\n- Version: v0.31.1\r\n- Platform: Linux x64\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n\r\nIn `offline_write_batch`, construct a fully-qualified table name using the schema in the options, if present.","author":{"url":"https://github.com/metavee","@type":"Person","name":"metavee"},"datePublished":"2023-06-13T15:52:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3651/feast/issues/3651"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8682052d-e57c-1922-93a9-3bd45ee9607e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C404:30B82:69560E:8B65D2:69731215 |
| html-safe-nonce | a93e9554aa335477be3bc4571041abc1b848c225daf5daedb70f3be5d18e9334 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDA0OjMwQjgyOjY5NTYwRTo4QjY1RDI6Njk3MzEyMTUiLCJ2aXNpdG9yX2lkIjoiMjY4NTQyMjQ2NTc4NDY4MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c9dc05118c6784df084c14a891132d04b6ed26aa76395e23f7fe509c8db214ea |
| hovercard-subject-tag | issue:1755204979 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/3651/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e1ffcfc66776c1ff907b8c0bd8ac8b1c2a91e088044a2c9871621d6f7db7b23/feast-dev/feast/issues/3651 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e1ffcfc66776c1ff907b8c0bd8ac8b1c2a91e088044a2c9871621d6f7db7b23/feast-dev/feast/issues/3651 |
| og:image:alt | 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 tabl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | metavee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width