Skip to content

Conversation

@maltehuebner
Copy link
Contributor

Summary

  • Fix critical bug where only current_data materialized view was refreshed
  • data_view and silvester_data were never refreshed due to $sql variable being overwritten
  • Use executeStatement() instead of native queries for DDL statements

Problem

// Before: only last assignment executes
$sql = 'REFRESH MATERIALIZED VIEW data_view;';
$sql = 'REFRESH MATERIALIZED VIEW silvester_data;';  // overwrites
$sql = 'REFRESH MATERIALIZED VIEW current_data;';    // overwrites again

Test plan

  • Run php bin/console luft:refresh and verify all three views are refreshed
  • Check that Silvester analysis and data_view queries return current data

🤖 Generated with Claude Code

The $sql variable was overwritten three times, so only the last
REFRESH (current_data) was ever executed. data_view and silvester_data
were never refreshed. Use separate executeStatement() calls instead.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.

1 participant