SNOW-3485471: fix aliased dataframe referencing wrong column (#4246)