Skip to content

Commit

Permalink
Take schema into account #1
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski committed Jul 5, 2024
1 parent 63fe8ce commit 112c595
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quesma/queryparser/query_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,10 @@ func createSortColumn(fieldName, ordering string) (model.OrderByExpr, error) {
}
func (cw *ClickhouseQueryTranslator) ResolveField(ctx context.Context, fieldName string) (field string) {
// Alias resolution should occur *after* the query is parsed, not during the parsing
if cw.SchemaRegistry == nil {
logger.Error().Msg("Schema registry is not set")
return fieldName
}
field = fieldName
// TODO handle aliases
/*
Expand Down

0 comments on commit 112c595

Please sign in to comment.