fix(sql): fix error on select distinct with join#2989
Merged
bluestreak01 merged 1 commit intomasterfrom Feb 14, 2023
Merged
Conversation
Collaborator
[PR Coverage check]😍 pass : 1 / 1 (100.00%) file detail
|
bluestreak01
approved these changes
Feb 14, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Similar to #2980 but fixes select distinct column with join .
Following queries :
trigger :
io.questdb.cairo.sql.InvalidColumnException
at io.questdb.cairo.sql.InvalidColumnException.(InvalidColumnException.java:28)
at io.questdb.cairo.sql.RecordMetadata.getColumnIndex(RecordMetadata.java:60)
at io.questdb.griffin.SqlCodeGenerator.generateSelectDistinct(SqlCodeGenerator.java:3053)
at io.questdb.griffin.SqlCodeGenerator.generateSelect(SqlCodeGenerator.java:2684)
at io.questdb.griffin.SqlCodeGenerator.generateQuery0(SqlCodeGenerator.java:2287)
at io.questdb.griffin.SqlCodeGenerator.generateQuery(SqlCodeGenerator.java:2274)
at io.questdb.griffin.SqlCodeGenerator.generate(SqlCodeGenerator.java:186)
at io.questdb.griffin.SqlCompiler.generate(SqlCompiler.java:2622)
at io.questdb.griffin.SqlCompiler.compileUsingModel(SqlCompiler.java:1292)
at io.questdb.griffin.SqlCompiler.compileInner(SqlCompiler.java:1241)
at io.questdb.griffin.SqlCompiler.compile(SqlCompiler.java:266)
at io.questdb.cutlass.http.processors.JsonQueryProcessor.compileQuery(JsonQueryProcessor.java:419)
at io.questdb.cutlass.http.processors.JsonQueryProcessor.execute0(JsonQueryProcessor.java:186)
at io.questdb.cutlass.http.processors.JsonQueryProcessor.onRequestComplete(JsonQueryProcessor.java:236)
at io.questdb.cutlass.http.HttpConnectionContext.handleClientRecv(HttpConnectionContext.java:600)
at io.questdb.cutlass.http.HttpConnectionContext.handleClientOperation(HttpConnectionContext.java:203)
at io.questdb.cutlass.http.HttpServer$1.lambda$$0(HttpServer.java:86)
at io.questdb.network.AbstractIODispatcher.processIOQueue(AbstractIODispatcher.java:178)
at io.questdb.cutlass.http.HttpServer$1.run(HttpServer.java:101)
at io.questdb.mp.Worker.run(Worker.java:118)