def test_ssh_directory_hive_creation(): uri = 'hive://hdfs@%s:10000/default::ssh_2' % host try: t = into(uri, ssh_directory) assert isinstance(t, sa.Table) assert discover(t) == ds assert len(into(list, t)) > 0 finally: drop(t)
def test_discover_hdfs_directory(): assert discover(hdfs_directory) == \ dshape('var * {id: int64, name: string, amount: int64}')
def test_discover(): assert discover(hdfs_csv) == \ dshape('var * {id: int64, name: string, amount: int64}')