QS Dataset error: operator does not exist: enum_priorities = text

I tried to publish a dataset but keep encountering this issue. Any idea how to overcome this?

sourceErrorCode: 0
sourceErrorMessage: ERROR: operator does not exist: enum_priorities = text Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 4181

Check source database type and the one that has been created after dataset creation if you find mismatch please typecast