UTL_MATCH.EDIT_DISTANCE_SIMILARITY rounds some half-way scores down
维护者通常 1 天内回复
评估
调研方向
首先找到 UTL_MATCH.EDIT_DISTANCE_SIMILARITY 的 C 实现及其现有的分数舍入测试。使用报告中的 SQL 示例重现问题,然后也检查删除 17 字节的情况。按照所述的五成取远离零方向舍入规则,两个中间值分数都舍入为 58,即为完成。
由索引模型根据 Issue 内容生成。
描述
On Oracle-mode IvorySQL master 83594b3f4663f:
SELECT UTL_MATCH.EDIT_DISTANCE_SIMILARITY(
repeat('a', 40), repeat('a', 23) || repeat('b', 17)
);
The edit distance is 17 and the exact normalized score is 57.5. The implementation returns 57 because floating-point subtraction produces a value just below the tie. The existing rounding rule is half away from zero, so the score should be 58. Deleting 17 bytes from a 40-byte string produces the same result.
- 主要语言
- C
- 星标
- 1.1k
- 派生
- 232
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 16
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IvorySQL/IvorySQL 的其他 Issue
-
ivorysql_ora: DBMS_SESSION lacks SLEEP (documented, not covered by #2763)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Add SECURITY.md未关闭enhancement
难度 1/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
SYS_CONTEXT('USERENV','TERMINAL') helper is declared numeric although TERMINAL is a VARCHAR2可能已有人在做 @PingGuoMiaoMiao 于 8 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
IvorySQL/IvorySQL#3248 · 1 条评论 ·
维护者通常 1 天内回复
-
contrib/ivorysql_ora/src/builtin_packages/utl_file/utl_file.c:517 - FCOPY destroys a file when source and destination are the same可能已有人在做 @Metastarx 于 15 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
IvorySQL/IvorySQL#3086 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
IvorySQL/IvorySQL#3085 · 1 条评论 ·
维护者通常 1 天内回复
查看 IvorySQL/IvorySQL 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
trezor/trezor-firmware#8357 ·
维护者通常 2 天内回复
-
good first issue kernel
难度 2/5 1-3 小时 新手友好度 76/100
JackFurton/who-would-build-a-kernel-in-java#316 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
PE5PVB/TEF6686_ESP32#970 ·
-
bug sev-3
难度 2/5 1-3 小时 新手友好度 62/100
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复