wierd bugfix with dict for partitionByQuery