mariadb/storage/spider
Yuchen Pei 44c88faeca
MDEV-28992 Spider group by handler: Push down TIMESTAMPDIFF function
Also removed ITEM_FUNC_TIMESTAMPDIFF_ARE_PUBLIC.

Similar to pr#2225, with the testcase adapted from that patch:

--8<---------------cut here---------------start------------->8---
From 884f7c6df1 Mon Sep 17 00:00:00 2001
From: "Norio Akagi (norakagi)" <norakagi@amazon.com>
Date: Wed, 3 Aug 2022 23:30:34 -0700
Subject: [PATCH] [MDEV-28992] Push down TIMESTAMP_DIFF in spider

This changes so that TIMESTAMP_DIFF function in a query is pushed down and works natively in Spider.
Instead of directly accessing item's member, now we can rely on a public accessor method to make it work.
Unit tests are added under spider.pushdown_timestamp_diff.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer
Amazon Web Services, Inc.
--8<---------------cut here---------------end--------------->8---
2024-04-08 14:35:35 +10:00
..
hs_client MDEV-33220 Fix -wmaybe-uninitialized warnings for g++-13 2024-03-25 12:56:00 +11:00
mysql-test/spider MDEV-28992 Spider group by handler: Push down TIMESTAMPDIFF function 2024-04-08 14:35:35 +10:00
scripts MDEV-19842 Crash while creating statistics for Spider table (#1355) 2019-07-06 23:52:53 +09:00
CMakeLists.txt Fix CMake warning in spider, in Windows ninja build 2019-09-12 17:06:06 +02:00
configure.in
ha_spider.cc MDEV-33220 Fix -wmaybe-uninitialized warnings for g++-13 2024-03-25 12:56:00 +11:00
ha_spider.h Merge 10.3 into 10.4 2022-06-27 10:14:37 +03:00
Makefile.am
spd_conn.cc MDEV-32524 Use enums for ids passed to spider mem alloc functions 2023-11-20 09:25:43 +11:00
spd_conn.h MDEV-16508 spider: sql_mode not maintained between spider node and data nodes (#1347) 2019-06-29 03:35:48 +09:00
spd_copy_tables.cc MDEV-33661 MENT-1591 Documenting spider_mon_table_cache and friends. 2024-03-28 09:32:53 +11:00
spd_copy_tables.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
spd_db_conn.cc MDEV-33191 spider: fix dbton_id when iterating over links 2024-01-25 12:33:52 +11:00
spd_db_conn.h Merge 10.3 into 10.4 2022-06-27 10:14:37 +03:00
spd_db_handlersocket.cc MDEV-28992 Spider group by handler: Push down TIMESTAMPDIFF function 2024-04-08 14:35:35 +10:00
spd_db_handlersocket.h MDEV-18973 CLIENT_FOUND_ROWS wrong in spider 2019-11-29 23:23:57 +09:00
spd_db_include.cc MDEV-16249 CHECKSUM TABLE for a spider table is not parallel and saves all data in memory in the spider head by default (#1328) 2019-06-11 00:25:08 +09:00
spd_db_include.h MDEV-33191 spider: fix dbton_id when iterating over links 2024-01-25 12:33:52 +11:00
spd_db_mysql.cc MDEV-28992 Spider group by handler: Push down TIMESTAMPDIFF function 2024-04-08 14:35:35 +10:00
spd_db_mysql.h MDEV-26247 Re-implement spider gbh query rewrite of tables 2023-11-17 11:07:50 +11:00
spd_db_oracle.cc MDEV-28992 Spider group by handler: Push down TIMESTAMPDIFF function 2024-04-08 14:35:35 +10:00
spd_db_oracle.h MDEV-18973 CLIENT_FOUND_ROWS wrong in spider 2019-11-29 23:23:57 +09:00
spd_direct_sql.cc MDEV-33434 spider direct sql: Check length before memcpy 2024-04-08 14:35:34 +10:00
spd_direct_sql.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
spd_environ.h MDEV-18993 The keep-alive connection (set spider_conn_recycle_mode = 1) in spider would cause cash in MariaDB (#1269) 2020-06-27 14:42:36 +09:00
spd_err.h MDEV-33008 Fix spider table discovery 2024-01-10 16:36:39 +11:00
spd_group_by_handler.cc MDEV-32524 Use enums for ids passed to spider mem alloc functions 2023-11-20 09:25:43 +11:00
spd_group_by_handler.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_i_s.cc Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
spd_include.h MDEV-33661 MENT-1591 Documenting spider_mon_table_cache and friends. 2024-03-28 09:32:53 +11:00
spd_init_query.h MDEV-33584 Use the default SQL_MODE for spider init queries 2024-03-27 11:40:41 +11:00
spd_malloc.cc MDEV-28835 Assertion `(length % 4) == 0' failed in my_lengthsp_utf32 on INSERT 2023-10-04 08:51:48 +04:00
spd_malloc.h MDEV-20179 Server hangs on shutdown during installation of Spider (#1368) 2019-07-30 06:16:48 +09:00
spd_param.cc MDEV-33160 show_status_array() calls various functions via incompatible pointer 2024-01-04 12:50:05 +02:00
spd_param.h MDEV-16508 spider: sql_mode not maintained between spider node and data nodes (#1347) 2019-06-29 03:35:48 +09:00
spd_ping_table.cc MDEV-33661 MENT-1591 Documenting spider_mon_table_cache and friends. 2024-03-28 09:32:53 +11:00
spd_ping_table.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
spd_sys_table.cc MDEV-33661 MENT-1591 Documenting spider_mon_table_cache and friends. 2024-03-28 09:32:53 +11:00
spd_sys_table.h MDEV-33661 MENT-1591 Documenting spider_mon_table_cache and friends. 2024-03-28 09:32:53 +11:00
spd_table.cc MDEV-33661 MENT-1591 Documenting spider_mon_table_cache and friends. 2024-03-28 09:32:53 +11:00
spd_table.h MDEV-31117 Fix spider connection info parsing 2023-08-23 11:21:14 +10:00
spd_trx.cc MDEV-28683 Spider: create conn on demand when direct delete 2023-12-07 11:02:31 +11:00
spd_trx.h MDEV-16508 spider: sql_mode not maintained between spider node and data nodes (#1347) 2019-06-29 03:35:48 +09:00
spd_udf.cc Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
spd_udf.def
spd_udf.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00