Support namedtuple in dataprovider