HIVE-7527: decide spark edge type accordingly