Pattern datatype in scalar representation