1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-24 10:12:58 +03:00
Commit Graph

171 Commits

Author SHA1 Message Date
Andrew Hutchings
9d83b49fca MCOL-104 First pass of InfiniDB rename in code 2019-08-12 09:41:28 +01:00
Gagan Goel
1c460f3ba5 MCOL-2178 Cleanup of MIGR:: singleton from the plugin code.
Disable SP execution by the smart handlers for now.

    Add session variables to Enable/Disable select/derived/group_by
    handlers. Defaulted to Enable.
2019-08-04 21:50:50 -04:00
Roman Nozdrin
d62b66ecf7 parse_item() in execplan code now always get an actual GWI structure
to avoid accedental crashes.

Add check for Conversion of Big IN Predicates Into Subqueries optimization
conditions.

Enabled derivedTableOptimization() for group by and derived handlers.

Disabled Conversion of Big IN Predicates Into Subqueries optimization.

Disabled most of optimizer_flags for now.

RowGroup + operator now correctly sets useStringTable flag that
instructs code to check StringStore instead of plain data buffer.
2019-08-01 14:29:55 -04:00
Roman Nozdrin
7d5275e1bd MCOL-2178 CS now doesn't initiate a scan when MDB explicitly set scan to false in rnd_init().
sortItemIsInGroupRec() now has a base case for Item_Field and this prevents unbound recursion.

    Fixes fromSub() call with incorrect number of arguments.

    CS now doesn't ask for statistics unless a user explicitly asks for it using calsettrace().
2019-08-01 14:29:55 -04:00
Roman Nozdrin
a9c72675ba MCOL-2178 Fixed MDB crash with setError() operating with empty gwi.
FromSubQuery() is no pushdown aware.

    Actualize OUTER_JOIN_DEBUG section in ha_calpont_execplan.cpp
    to be used with 10.4.

    Enabled derivedTableOptimization() for select handler.
2019-08-01 14:29:55 -04:00
Roman Nozdrin
3074b6c4b3 MCOL-2178 Functions with constant args are processed by CS now.
Fix crash in ha_calpont_impl_close_connection()

    Fix leak in ci.tableMap.

    Removed extra returns in pushdown_init to avoid crashes.

    create_select_handler now detects INSERT..SELECT.

    buildConstColFromFilter now uses any kind of filter to supply
    relevant columns.

    Remove strings used by vtable redo phase.

    Make FromSubQuery aware of Pushdown handlers.

    Changed debug_walk to work around changed Item framework.

    Temporary disabled derived handler and unsupported features checks.
2019-08-01 14:09:35 -04:00
Roman Nozdrin
cd72326c4d MCOL-2178 Introduced a dummy replacement for a infinidb_table.
Used Item attribute getters introduced by 10.4

    Make changes to support Item::CONST_ITEM introduced by 10.4
    as a replacement for INT_,REAL_,STRING_ ITEM.

    Replaced QT_INFINIDB_DERIVED and similar flags
    with correponded flags for Item->print().

    Replaced or commented out infinidb_ variable names with columnstore_
    where applicable.
2019-08-01 14:09:35 -04:00
Roman Nozdrin
6fd5b2f22d MCOL-2178 Merging with 10.4
SELECT_LEX had been moved in THD so changed all references.
        Avoid writing CS decimal scales into MDB decimal fields
            d-only dec attribute. WIP
        Replaced infinidb_vtable with a singleton MIGR.
        Merged with MCOL-2121.
        Added new wsrep include paths needed by UDaF code.
        Removed .vcxproj from Connector code.
2019-08-01 12:54:17 -04:00
Roman Nozdrin
2071716ebd MCOL-2121 New derived_handler(MDEV-17096) infrastructure.
Renamed isInfiniDB() into isMCSTable

    Changed getSelectPlan() to reuse it with derived and
        other handler types.

    Separate pushdown handlers methods and functions.

    Removed vcxproj files from the source.

    Added fix for MCOL-2166.

    Merged with MCOL-2121
2019-08-01 12:54:17 -04:00
Andrew Hutchings
5e4f1b9933 Merge branch 'develop' into MCOL-265 2019-06-10 13:58:03 +01:00
Andrew Hutchings
020b211bb7 Merge branch 'develop-1.2' into develop-merge-up-20190514 2019-05-14 13:58:33 +01:00
Roman Nozdrin
9dc33c4e82 Another try to cope with warnings under gcc 8.2. 2019-04-29 11:05:03 +03:00
David Mott
4b9d046c6e Fully resolve potentially ambiguous symbols by removing using namespace statements from headers which have a cascading effect. This causes potential behavior changes when switching to c++11 since symbols can be exported from std and boost while both have been imported into the global namespace. 2019-04-29 01:21:15 -05:00
Andrew Hutchings
784bbe09d4 Merge branch 'develop-1.2' into develop-merge-up-20190425 2019-04-25 10:27:59 +01:00
Roman Nozdrin
f4f053dd8c MCOL-3267 CS now executes sorting inside UNION ALL sub-selects. 2019-04-23 14:34:49 +03:00
Gagan Goel
e89d1ac3cf MCOL-265 Add support for TIMESTAMP data type 2019-04-23 00:00:09 -04:00
Andrew Hutchings
064d2ee9e4 Merge branch 'develop-1.2' into develop-merge-up-20190328 2019-03-28 15:09:21 +00:00
David Hall
0ea4ccfe06 MCOL-1822 colWidth should be sizeof(long double), not hardcoded 16 2019-03-05 09:49:11 -06:00
David Hall
3f2c753947 MCOL-1822-c final checkin 2019-03-05 09:33:39 -06:00
David Hall
a2aa4b8479 MCOL-1822 Intermediate checkin. DISTINCT not working. 2019-02-25 14:54:46 -06:00
Roman Nozdrin
06696f596a MCOL-1101 Add plugin variables to replace the legacy system vars.
Legacy system vars with names infinidb_* was preserved for
    backward compatibility and they will be used if
    columnstore_use_legacy_vars variable is set.

    Remove unused structure and plugin variable.
2019-02-18 16:13:50 +03:00
Roman Nozdrin
ca0240037a FE connection info structure migration.
Replaced INFINIDB_VTABLE.cal_conn_info with a plugin thread variable.
	Fixed query_string memory deallocation crash at plugin_thdvar_cleanup.
2019-02-13 22:09:55 +03:00
David Hall
c5b9ae11e5 MCOL-1822 add LONG DOUBLE support 2019-01-29 09:55:43 -06:00
David.Hall
e2f1765c53 Merge pull request #633 from mariadb-corporation/MCOL-1790
MCOL-1790 Switch to MariaDB's case type detection
2018-11-23 13:01:27 -06:00
Andrew Hutchings
f3ce33d9ea MCOL-1790 Switch to MariaDB's case type detection
MariaDB added a generic way to detect case type so remove our hack and
switch to that.
2018-11-21 11:23:12 +00:00
Roman Nozdrin
3bf269b3f7 MCOL-1519 GROUP BY handler now uses an appropriate SELECT_LEX structure.
Before that handler used an outter query SELECT_LEX that could give
	incorrect information for subquery.
2018-11-20 13:44:47 +03:00
Andrew Hutchings
c452882a79 Merge pull request #606 from mariadb-corporation/MCOL-1776
MCOL-1776 Fix MCOL-1403 regression
2018-11-08 18:32:58 +00:00
Andrew Hutchings
166fd77e8f MCOL-1776 Fix MCOL-1403 regression
Somehow some dead code came back. It is dead again now.
2018-11-03 11:52:19 +00:00
david hill
101b36acb6 Merge branch 'develop' into MCOL-520 2018-10-08 14:23:48 -05:00
Andrew Hutchings
47fbf62bfe MCOL-1775 Remove warning on unused var 2018-10-08 09:20:46 +01:00
Andrew Hutchings
6a72b28bab MCOL-1775 Fix addtime/subtime for WHERE
MariaDB server renamed addtime/subtime so we need to use the new names
for these functions.
2018-10-06 11:27:51 +01:00
Andrew Hutchings
f1f13a09d1 Merge branch 'develop-1.1' into 1.1-merge-up-2018-10-05 2018-10-05 18:40:07 +01:00
David Hill
72f514ca54 MCOL-520 2018-09-21 14:44:12 -05:00
Roman Nozdrin
18143ecaee MCOL-1052 Remove unused symbols. 2018-09-17 16:18:54 +03:00
Ravi Prakash
5247dfa082 MCOL-1188 assertion 'fColumn.get() && fSub && fFunc' failed,...
Some cleanup for the previous check-in.
2018-09-04 12:20:40 -07:00
Ravi Prakash
58bc867ca1 MCOL-1188 assertion 'fColumn.get() && fSub && fFunc' failed, ... MySQL server crashed.
The problem was in processing a subquery in the where clause that was categorized as a
CACHE_ITEM in the parse tree. The fix involved how we walk the parse tree in gp_walk().
2018-08-30 20:24:24 -07:00
Roman Nozdrin
07561c43d7 MCOL-1052 LIMIT processing refactoring in getGroupPlan(). 2018-08-30 17:03:14 +03:00
Roman Nozdrin
62f296b443 MCOL-1510 Make changes to allow aggregations as function arguments when build in release mode. See also MDEV-16842. 2018-08-30 16:59:41 +03:00
David Hall
91fbfb7d0b MCOL-1669 get correct return type when a built-in agg is performed on a const 2018-08-23 15:14:17 -05:00
David.Hall
23e99db0ea Merge pull request #545 from mariadb-corporation/1.1-merge-up-20180817
Merge develop-1.1 into develop
2018-08-20 14:07:35 -05:00
David.Hall
2de158133c Merge pull request #540 from drrtuy/MCOL-1637
MCOL-1637 Return limit value comparision to fix the regression.
2018-08-20 09:38:52 -05:00
Andrew Hutchings
03da6df473 Merge branch 'develop-1.1' into 1.1-merge-up-20180817 2018-08-17 16:17:13 +01:00
drrtuy
69486310f2 MCOL-1637 Return limit value comparision to fix the regression. 2018-08-16 13:01:04 +03:00
Andrew Hutchings
443a2867c4 MCOL-1385 Initial 10.3 support 2018-08-02 14:55:01 +01:00
David Hall
7ec1ccac5e MCOL-1472 Add switch to handle nested case 2018-07-24 10:16:26 -05:00
Andrew Hutchings
4a3f8b77c2 Merge pull request #519 from drrtuy/MCOL-1510
MCOL-1510 GROUP BY handler doesn't support operations on aggregate functions when projecting columns.
2018-07-18 09:34:13 +01:00
Roman Nozdrin
a62a2e321e MCOL-1510 CS prints IDB-1001 error when agregates used in non-supported functions, e.g. NOT(sum(i)). 2018-07-12 14:25:46 +03:00
Roman Nozdrin
cc474f429c MCOL-1510 GROUP BY supports aggregates as arguments in string functions. 2018-07-11 20:57:17 +03:00
Andrew Hutchings
1fa2537575 Merge pull request #515 from drrtuy/MCOL-1497
MCOL-1497 GROUP BY handler supports outer joins.
2018-07-10 09:24:35 +01:00
Andrew Hutchings
fc0a8b1043 Merge pull request #503 from drrtuy/MCOL-1457
MCOL-1457 GROUP BY handler supports aliases of projected columns in ORDER BY list.
2018-07-10 09:23:53 +01:00