Keep original join-aliases in expected columns (#30747)
* Keep original join-aliases in expected columns Fixes #30648. The root cause of the bug was that the result_metadata generated for MBQL queries returned escaped join-aliases, which in BigQueries case means that spaces are converted underscores (_). These wrong join aliases could not be resolved in later stages and resulted in incorrect references. Normally, the escaped aliases are replaced by original ones in the post processing step, but the post processing is not executed when calculating expected columns. This PR makes sure the original aliases are restored in the expected columns. * Keep source_alias and display_name intact too
Please register or sign in to comment