Currently compile-time warnings are possibly logged, they should (also) be reported with the query result.
[CX] Issue a warning when incompatible types are compared
[CX] Return a Warning When Hints Are Ignored
[CX] Collect and report runtime warnings
[CX] Support for compiler/runtime warnings (e.g. for cross products, ignored hints, ...)