Skip to content

Syntax Error using expr in a dependent entity column #2227

Answered by B4nan
juliocastroacid asked this question in Q&A
Discussion options

You must be logged in to vote

You can't use custom fragments in nested conditions. The fact they are nested implies they need to be aliased.

Will allow the :: casting so we can do this:

{
  y: { z: { [expr('target::text')]: { $ilike: '%550%' } } }
}

But in general the same restriction still apply, we can't use any function as it will be prefixed with the alias. expr is just an identity function, it has no information about the context, therefore can't handle aliasing on its own. Kinda related to #2217, I don't have any solution for that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juliocastroacid
Comment options

Answer selected by juliocastroacid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #2224 on September 23, 2021 10:02.