File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ export class SqlParameterQuery
360360 }
361361
362362 createParameterLookupSource ( params : CreateSourceParams ) : BucketParameterLookupSource {
363- // FIXME: Use HydrationState for lookups.
364363 const hydrationState = resolveHydrationState ( params ) ;
365364 const lookupState = hydrationState . getParameterLookupScope ( this ) ;
366365 return {
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ export interface SubqueryEvaluator {
4141 parameterTable : TablePattern ;
4242
4343 lookupSources ( ) : BucketParameterLookupSourceDefinition [ ] ;
44+ // TODO: Is there a better design here?
45+ // This is used for parameter _queries_. But the queries need to know which lookup scopes to
46+ // use, and each querier may use multiple lookup sources, each with their own scope.
47+ // This implementation here does "hydration" on each subquery, which gives us hydrated function call.
48+ // Should this maybe be part of a higher-level class instead of just a function, i.e. a hydrated subquery?
4449 hydrateLookupsForRequest ( hydrationState : HydrationState ) : ( params : RequestParameters ) => ParameterLookup [ ] ;
4550}
4651
You can’t perform that action at this time.
0 commit comments