[query, bugfix] TableAggregate interpret supports globals in init op#14673
[query, bugfix] TableAggregate interpret supports globals in init op#14673hail-ci-robot merged 1 commit intomainfrom
Conversation
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @patrick-schultz and the rest of your teammates on |
86dccbd to
2247c23
Compare
chrisvittal
left a comment
There was a problem hiding this comment.
Glad the fix was simple
ehigham
left a comment
There was a problem hiding this comment.
Can you lock down this behaviour with a test?
As I said in the description, I tried hard to write a test, but I couldn't manage to find a way to exercise this with a targeted test. And this bug is currently blocking a user, so I want to get it released asap. I can try again, but I suspect it would end up being a day or two of extra work, and would likely still end up brittle and unsatisfactory. I'd rather spend my effort getting back into the line of work that would eventually make it much easier to target specific compiler code paths. |
ehigham
left a comment
There was a problem hiding this comment.
sorry for not reading description!

There was a typo in the
Interpretrule forTableAggregatewhich had it refer to the row instead of the globals inside the init op.I tried to add a test for this, but it's frustratingly difficult to force the compiler to go through this code path. Even when using an
InterpretOnlycompilation, the lowering pipeline often liftsTableAggregateto aRelationalLet, and then evaluates it, using the compiler not the interpreter. This is a deeper issue we should address, but a user is currently blocked on this bug so I don't want to hold it up.