Closed lgo closed 2 years ago
Pinot doesn't support select *
with extra columns in the select clause currently.
There are 2 ways to fix the issue:
*
on each segment on the server side (current approach in SelectionOperatorUtils.extractExpressions()
)IMO the first fix is cheaper as the rewrite only need to be performed once per query instead of once per segment.
Would you like to contribute a fix for this issue?
@Jackie-Jiang Can I pick this up if Igo is not working on this?
@Jackie-Jiang Thinking about the behaviour in the following cases:
select playerID, * from baseballStats
: We should return the playerID
column once or twice? IMO we should return this twice as that is what the user has asked for.select *
right now doesn't return the virtual columns).@suddendust Thanks for volunteering on this. I've assigned the issue to you
For the questions:
select $docId, * from ...
This can be closed as it's released in 0.10.0 @Jackie-Jiang
While running some adhoc queries to debug some things, I found the following query would fail. It's not a significant issue, because a query explicitly listing columns to select works fine.
with the exception(s)
Note, the commit this was on is roughly ce9fb572d157d82f8a014624152ddd53332372be, and I have not yet tried to reproduce this on the latest version.