Skip to content

Functions do not see types from default module #1588

Answered by elprans
Fogapod asked this question in Q&A
Discussion options

You must be logged in to vote

It's a bug. Currently, when an expression in schema is seen, the current module is injected automatically into a WITH clause. However, it seems that it is appended to the WITH clause instead of being injected as the first entry, and so your first declaration in the WITH block does not "see" it (WITH entries are processed in order).

@vpetrovykh is currently reworking the expression normalization in #1522 to inject fully-qualifed names instead of injecting an alias, which would make it more robust.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fogapod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants