Timestamp range query should be enabled only if columns are specified