@append.register(sa.Table, (SSH(CSV), SSH(Directory(CSV))))
def append_remote_csv_to_table(tbl, csv, **kwargs):
    """
    Load Remote data into existing Hive table
    """
    path = csv.path
    if path[0] != '/':
        path = (csv.auth['username'], csv.path) % '/home/%s/%s'

    if tbl.bind.dialect.name == 'hive':
        statement =('LOAD DATA LOCAL INPATH "%(path)s" INTO TABLE %(tablename)s'
                     % {'path': path, 'tablename': tbl.name})
    else:
        raise NotImplementedError("Don't know how to migrate csvs on remote "
                  "disk to database of dialect %s" % tbl.engine.dialect.name)
    with tbl.bind.connect() as conn:
        conn.execute(statement)
    return tbl
dataset/ETHPy150Open blaze/odo/odo/backends/hdfs.py/append_remote_csv_to_table/swapped operands of `%`