Add implicit join specific error message when path root is not declared
Author: lukasederCreated Aug 31, 2026Updated Sep 7, 2026
LabelsT: EnhancementC: FunctionalityP: MediumE: All Editions
I just debugged through a query like this:
ctx.select(T1.X, T1.t2().Y)
.from(T3);This rendered something like:
SELECT t1.x, alias_1234.y
FROM t3I spent some time investigating why the alias_1234 wasn't present in the join tree, until I noticed the typo, caused by copy pasting a query. I should have written:
ctx.select(T1.X, T1.t2().Y)
.from(T1); // Not T3When a path's root is not declared, the path alias is meaningless, which might be hard to debug. Perhaps, at least a DEBUG log message could be useful here.
Source: jOOQ/jOOQ