Switched back to scala Long for dataType, to fix problem with predicate in monitor