

def is_nested_record(measure):
    "Predicate for checking whether `measure` is a nested ``Record`` dshape\n\n    Examples\n    --------\n    >>> from datashape import dshape\n    >>> is_nested_record(dshape('{a: int32, b: int32}').measure)\n    False\n    >>> is_nested_record(dshape('{a: var * ?float64, b: ?string}').measure)\n    True\n    "
    if (not isrecord(measure)):
        raise TypeError(('Input must be a Record type got %s of type %r' % (measure, type(measure).__name__)))
    return (not all((isscalar(getattr(t, 'key', t)) for t in measure.types)))

dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py is_nested_record/original