示例#1
0
文件: test_hdfs.py 项目: quasiben/odo
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)
示例#2
0
文件: test_hdfs.py 项目: quasiben/odo
def test_discover_hdfs_directory():
    assert discover(hdfs_directory) == \
            dshape('var * {id: int64, name: string, amount: int64}')
示例#3
0
文件: test_hdfs.py 项目: quasiben/odo
def test_discover():
    assert discover(hdfs_csv) == \
            dshape('var * {id: int64, name: string, amount: int64}')