2024年1月22日

摘要: 背景 在 Oracle 中,用户自定义的无参函数可以不带括号执行。为支持该特性,LightDB 24.1 版本中,允许用户使用无参函数的函数名调用函数,包括系统函数,如:now. 此功能限制在 LightDB 的 oracle 数据库下运行。 用例 create function fn_nopara 阅读全文
posted @ 2024-01-22 11:29 winter-loo 阅读(23) 评论(0) 推荐(0)
摘要: 背景 在 Oracle 和 PostgreSQL 中 datetime 标识符并没有作为关键字,也不是数据类型。在 Mysql 中,datetime 是数据类型名,但并不是保留关键字。在 LightDB 23.4 及以前版本中,datetime 被误当成可以作为列名的关键字,导致 Oracle 用户 阅读全文
posted @ 2024-01-22 11:06 winter-loo 阅读(14) 评论(0) 推荐(0)

2024年1月12日

摘要: what is ‘query jumbling’? SUMMARY: it’s a mechanism for calculating query id. DETAIL: PostgreSQL extracts the node->type of each Node in the raw query 阅读全文
posted @ 2024-01-12 11:23 winter-loo 阅读(46) 评论(0) 推荐(0)

2024年1月4日

摘要: setup In the section of C declarations within the file src/backend/parser/gram.y, include the following code, #ifdef YYDEBUG #undef YYDEBUG #endif #de 阅读全文
posted @ 2024-01-04 21:16 winter-loo 阅读(104) 评论(0) 推荐(0)

2023年12月25日

摘要: 背景 在 Oracle 中,长度为 0 的字符串被视为 NULL. 下文中长度为 0 的字符串被称为 EMPTY_STRING. 而 PostgreSQL 能够区别对待 EMPTY_STRING 和 NULL. 为了兼容 Oracle 的行为,在 LightDB 23.4 版本前,已经基本将 EMP 阅读全文
posted @ 2023-12-25 17:38 winter-loo 阅读(35) 评论(0) 推荐(0)

2023年11月2日

摘要: previous article: Function Candidates Selection Algorithm Problem Description function actual arguments and cadidates T = (193341, 23, 23) C = [(19334 阅读全文
posted @ 2023-11-02 20:41 winter-loo 阅读(23) 评论(0) 推荐(0)

2023年10月31日

摘要: Function Candidates Selection Algorithm environment setup In lightdb orafce extension, execute sql below, CREATE DOMAIN oracle.clob AS TEXT; -- versio 阅读全文
posted @ 2023-10-31 23:38 winter-loo 阅读(45) 评论(0) 推荐(0)

2023年10月19日

摘要: query parsing in mysql mysql source code version: 8.0.34 (from MYSQL_VERSION file) This an article from questions to understandings. which file does m 阅读全文
posted @ 2023-10-19 14:45 winter-loo 阅读(65) 评论(0) 推荐(0)

2023年8月11日

摘要: 在上一篇中,主要探究了 postgresql 源码层面是怎么实现聚合函数的。本篇将探究 having clause 是如何实现的。 setup create table foo(a int, b int); insert into foo select random() * i/2, random( 阅读全文
posted @ 2023-08-11 20:52 winter-loo 阅读(25) 评论(0) 推荐(0)

2023年8月10日

摘要: 该文章将分为上下两篇, 从源码层面了解 aggregate function 怎么实现 从源码层面了解 having clause 怎么实现 第一篇是阅读第二遍的前提。本文讲述的是第一篇的内容。每一篇文章内容会分为 5 个部分,对应一条 sql 的执行流程。这 5 个部分是: parser anal 阅读全文
posted @ 2023-08-10 21:12 winter-loo 阅读(69) 评论(0) 推荐(0)

导航