Skip to content

Conversation

@m110
Copy link
Member

@m110 m110 commented Jan 5, 2023

No description provided.

@m110 m110 changed the base branch from master to stream January 5, 2023 23:19
Base automatically changed from stream to master January 6, 2023 17:11
func (s WatermillSchemaAdapter) SelectQuery(topic string, consumerGroup string, offsetsAdapter sql2.OffsetsAdapter) (string, []interface{}) {
nextOffsetQuery, nextOffsetArgs := offsetsAdapter.NextOffsetQuery(topic, consumerGroup)
selectQuery := `
SELECT id, stream_id, event_payload FROM events
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if it wouldn't be possible to add extra config to the Watermill adapter to provide it instead of rewriting.

It may be useful, as I suspect that such naive querying may not always work in Postgres properly. In that case, fixing it in our adapter will not propagate here.

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

Successfully merging this pull request may close these issues.

3 participants