When trying to group a dataframe and then generate a distinct count using n_distinct like this: "Error: nanodbc/nanodbc.cpp:1617: XX000: ERROR: WINDOW definition is ...