fix AmbiguousColumnException thrown by ParseNodeRewriter