您好,
环境:nebula和Exchange 版本2.5.0
功能描述:在查询顶点或是边时,在查询前可否加入 truncate table TAB 吗?
以下hive_application.conf 举例,可以实现吗?
# 处理边数据
edges: [
# 设置Edge type follow相关信息
{
# Nebula Graph中对应的Edge type名称。
name: follow
type: {
# 指定数据源文件格式,设置为hive。
source: hive
# 指定边数据导入Nebula Graph的方式,
# 指定如何将点数据导入Nebula Graph:Client或SST。
sink: client
}
# 设置读取数据库basketball中follow表数据的SQL语句。
exec: "truncate table basketball.follow"
exec: "select src_player, dst_player, degree from basketball.follow"
# 在fields里指定follow表中的列名称,其对应的value会作为Nebula Graph中指定属性。
# fields和nebula.fields里的配置必须一一对应。
# 如果需要指定多个列名称,用英文逗号(,)隔开。
fields: [degree]
nebula.fields: [degree]
*******
}