Skip to content

Commit

Permalink
weird order of precedence with jsonb
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydtabb committed Jan 18, 2024
1 parent bf90cb3 commit ec4ca9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/malloy/src/model/malloy_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1183,13 +1183,13 @@ class QueryFieldDistinctKey extends QueryAtomicField {
return this.parent.dialect.concat(
parentKey || '', // shouldn't have to do this...
"'x'",
this.parent.dialect.sqlFieldReference(
`(${this.parent.dialect.sqlFieldReference(
this.parent.getIdentifier(),
'__row_id',
'string',
true,
false
)
)})`
);
} else {
// return this.parent.getIdentifier() + "." + "__distinct_key";
Expand Down

0 comments on commit ec4ca9f

Please sign in to comment.