nebula版本:nebula3.4
机器配置:32core. 128g. 三个节点,每个节点2块SSD
原有查询语句:
MATCH (n)-[:APPLY_FOR]->(a2:APPL)-[:APPLY_ON]->(t2:`TIME`)
WHERE id(n) in [36472820] and t2.`TIME`.`date` < date('2022-03-19')
WITH collect(distinct case when a2 is not null then id(n) else null end) as col_appl_2nd_dr_v4
return col_appl_2nd_dr_v4
现在我们更改的原始数据,删除了TIME点,然后将TIME点上的属性date放到了APPL节点,
则cypher改为
MATCH (n)-[:APPLY_FOR]->(a2:APPL)
WHERE id(n) in [36472820] where a2.APPL.`date` < date('2022-03-19')
WITH collect(distinct case when a2 is not null then id(n) else null end) as col_appl_2nd_dr_v4
return col_appl_2nd_dr_v4
主要是我们的APPLY_ON是指向TIME节点的,我们将申请时间直接放在了APPL电上面,通过上面修改后语句筛选,请问这样查询,为什么查出来是空的呢,只是将TIME上的date属性放到了APPL上去了