paul-rogers commented on issue #1945: DRILL-7502: Invalid codegen for typeof() 
with UNION
URL: https://github.com/apache/drill/pull/1945#issuecomment-570761952
 
 
   @vvysotskyi, @ihuzenko thank you for your reviews. I believe I've addressed 
your comments. Please take another look.
   
   This commit contains some significant changes. As it turns out, we have 
three different ways we work with Union vectors in code gen. Two worked, the 
third did not. Figuring that out was a bit of an involved exercise. I added 
quite a few comments and split up some overly-large methods, to help gain 
understanding. I added a bit of a hack to work around the missing case. It 
works; all tests pass including the new one that initially failed. (And 
DRILL-7510 got magically fixed along the way.)
   
   I say the fix is a "hack" because I had to add more state: to access the 
Union vector when setting up parameters that use a `FieldReader`. It seems 
there should be a simpler way; but I could not find it.
   
   @KazydubB, these changes touched some of the same areas you apparently 
touched for your `DICT` work. Can you take a look to 1) make sure I didn't 
accidentally break anything, and 2) perhaps see the pattern I may be missing 
about how to set up a `FieldReader` for a Union vector. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to