[BUG]
还没有人认领这个 Issue。
评估
调研方向
从 issue 中显示的 execute_query 入口点开始,通过 Neo4j driver 复现一个 LDBC SNB 查询。记录确切的语法错误以及导致该错误的查询;当相关的 LDBC SNB 查询能够通过此连接成功执行时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
from neo4j import GraphDatabase
import time
def execute_query(query_string: str:
"""
简单执行 Cypher 查询并显示结果
Args:
query_string: 完整的 Cypher 查询字符串(包含具体参数值)
connection_uri: Neo4j 连接 URI
"""
connection_uri: str = "neo4j://127.0.0.1:7687"
driver = GraphDatabase.driver(connection_uri)
try:
with driver.session() as session:
print("执行查询:")
print("-" * 50)
print(query_string)
print("-" * 50)
start_time = time.time()
result = session.run(query_string)
execution_time = time.time() - start_time
# 显示结果
records = list(result)
print(f"查询完成,耗时: {execution_time:.4f}秒")
print(f"返回结果数: {len(records)}条")
if records:
print("\n结果:")
for i, record in enumerate(records):
print(f"记录 {i+1}: {dict(record)}")
else:
print("无结果返回")
except Exception as e:
print(f"查询执行失败: {e}")
finally:
driver.close()
通过此连接执行LDBC SNB测试查询,报错语法错误
- 主要语言
- C++
- 星标
- 3.6k
- 派生
- 470
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
alibaba/GraphScope 的其他 Issue
-
[BUG] Failed archive extraction deletes the dataset cache可能已有人在做 @dajiaohuang 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
alibaba/GraphScope#4674 ·
-
stale
难度 5/5 一周以上 新手友好度 25/100
alibaba/GraphScope#4655 · 2 条评论 ·
-
stale
难度 5/5 一周以上 新手友好度 38/100
alibaba/GraphScope#4654 · 2 条评论 ·
-
stale
难度 4/5 3-5 天 新手友好度 45/100
alibaba/GraphScope#4647 · 3 条评论 ·
-
stale
难度 4/5 3-5 天 新手友好度 30/100
alibaba/GraphScope#4639 · 2 条评论 ·
查看 alibaba/GraphScope 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
KhronosGroup/Vulkan-Tutorial#534 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 2 天内回复
-
bug IO
难度 2/5 1-3 小时 新手友好度 65/100
MrNeRF/LichtFeld-Studio#3824 ·
维护者通常 1 天内回复
-
pnnx: manual tanh GELU fusion loses the approximation mode可能已有人在做 @ktz03 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Tencent/ncnn#7175 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
throneproj/Throne#2043 ·
维护者通常 2 天内回复