Skip to content

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Aug 16, 2024

What this PR does

This PR builds on #8995 to add support for the vector() and scalar() functions in MQE.

Which issue(s) this PR fixes or relates to

(none)

Checklist

  • Tests updated.
  • [n/a] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [n/a] about-versioning.md updated with experimental features.

Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

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

lgtm, just one thing I didn't quite follow

})
}

for seriesIdx := 0; seriesIdx < seriesCount; seriesIdx++ {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do this instead of looping until we see EOS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did it this way so we could detect a situation where the inner operator said it would give X series but only returned Y series.

Granted, that should never happen, but if it did, that'd be weird and we'd want to fail the query rather than silently continue.

Base automatically changed from charleskorn/mqe-scalars to main August 16, 2024 05:48
@charleskorn charleskorn force-pushed the charleskorn/mqe-scalars-part-2 branch from 3185849 to ae8670a Compare August 16, 2024 05:58
@charleskorn charleskorn marked this pull request as ready for review August 16, 2024 05:59
@charleskorn charleskorn requested a review from a team as a code owner August 16, 2024 05:59
@charleskorn charleskorn enabled auto-merge (squash) August 16, 2024 06:11
@charleskorn charleskorn merged commit fe31312 into main Aug 16, 2024
29 checks passed
@charleskorn charleskorn deleted the charleskorn/mqe-scalars-part-2 branch August 16, 2024 06:12
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