Skip to content

Filter out measures with invalid data types in metrics view AI generation#8496

Merged
begelundmuller merged 4 commits intomainfrom
begelundmuller/no-time-in-measures-mv-gen
Dec 16, 2025
Merged

Filter out measures with invalid data types in metrics view AI generation#8496
begelundmuller merged 4 commits intomainfrom
begelundmuller/no-time-in-measures-mv-gen

Conversation

@begelundmuller
Copy link
Contributor

@begelundmuller begelundmuller commented Dec 12, 2025

Closes https://linear.app/rilldata/issue/PLAT-362/errors-with-time-based-measures-in-ai-generated-metrics-view

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@begelundmuller begelundmuller self-assigned this Dec 12, 2025
@begelundmuller begelundmuller marked this pull request as ready for review December 12, 2025 17:07
if err != nil {
return nil, err
}
defer e.Close()
Copy link
Member

Choose a reason for hiding this comment

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

why not defer now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to remove it because the linter doesn't allow defers in loops: https://github.com/rilldata/rill/actions/runs/20174254946/job/57918068547#step:6:41

@begelundmuller begelundmuller merged commit 18f4908 into main Dec 16, 2025
18 checks passed
@begelundmuller begelundmuller deleted the begelundmuller/no-time-in-measures-mv-gen branch December 16, 2025 11:34
k-anshul pushed a commit that referenced this pull request Dec 18, 2025
…tion (#8496)

* Filter out measures with invalid data types in metrics view AI generation

* Add test

* Self review

* Fix lint
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.

2 participants