Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BUG]

未关闭
#4,635 10 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
neo4j, python
领域
databases

调研方向

从 issue 中显示的 execute_query 入口点开始,通过 Neo4j driver 复现一个 LDBC SNB 查询。记录确切的语法错误以及导致该错误的查询;当相关的 LDBC SNB 查询能够通过此连接成功执行时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

stale

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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

alibaba/GraphScope 的其他 Issue

查看 alibaba/GraphScope 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。