1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-05-28 13:01:26 +03:00

282 Commits

Author SHA1 Message Date
Roman Nozdrin
771988dd1f MCOL-2052 IS.columnstore_files now prints correct number of records for any relation out.
Return statement called in generate_result() returns too early.
2019-01-15 10:18:25 +03:00
Patrick LeBlanc
a68caad9a2 MCOL-1654. Querystats table creation broken.
Escaped the ` chars to make the shell happy.
2018-11-06 07:57:44 -06: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
Ravi Prakash
5df447b6ec Fix MCOL-1635 where an "insert into table select query" crashes the server. This happens
for a MEDIUMBLOB column type.
2018-08-14 11:59:09 -07:00
David Hall
7ec1ccac5e MCOL-1472 Add switch to handle nested case 2018-07-24 10:16:26 -05:00
Roman Nozdrin
1995e92788 MCOL-1527 CEJ DML statements now return correct number of affected rows. 2018-07-17 20:17:51 +03:00
Ravi Prakash
5ea9cad2d4 MCOL-1155 Remove try-catch block by an explicit check for a null pointer. 2018-06-26 13:13:59 -07:00
Ravi Prakash
af87f47a8f Fix MCOL-1155 to correctly process the NOT subtree. 2018-06-25 10:25:33 -07:00
Andrew Hutchings
d3d322ed7b MCOL-1484 I_S condition pushdowns
Add condition pushdowns to the information_schema tables to give a
performance improvement when a relevant WHERE condition is provided. In
addition there is a new table_usage() stored procedure designed to use
the pushdowns.
2018-06-19 15:12:44 +01:00
Roman Nozdrin
efbf297eb7 MCOL-1384 Backport the MCOL-573 feature to 1.1. Change msg type to avoid server code assert violation. 2018-05-31 10:45:22 +03:00
Andrew Hutchings
fbf2f2e979 MCOL-1403 Remove whitespace trimming on constants
This appears to be to fix equality matches in InfiniDB but at the same
time it breaks LIKE processing. Equality matching with trailing
whitespace was fixed in MCOL-1246 so the old InfiniDB patch can be
removed.
2018-05-10 17:35:38 +01:00
Roman Nozdrin
b9f2b55484 MCOL-1384 Parser accepts quotes with qualified dbobject identifiers. 2018-05-07 11:56:54 +03:00
David.Hall
69519426be
Merge pull request #460 from mariadb-corporation/MCOL-1349
MCOL-1349 Fix outer joins in views
2018-05-02 10:14:48 -05:00
Andrew Hutchings
0b32f95dac MCOL-1349 Fix outer joins in views
Outer join handling inside views was broken due to the joins being
processed twice. This patch brings back the code so that outer joins in
views are only processed once.
2018-05-02 15:26:01 +01:00
Ravi Prakash
fda6b35243 More change for MCOL-1229. Do not throw an exception but return an error code. 2018-04-30 10:39:13 -07:00
Ravi Prakash
1bcc8a3052 MCOL-1229 - IS.columnstore_columns crashes when DDL is simultaneously executing.
The crash was due to an attempt to iterate over the columns of a recently dropped table.
Such a table will now be ignored.
2018-04-28 14:48:13 -07:00
Andrew Hutchings
0c6dc5e15c MCOL-1341 Fix CASE handling with 10.2.14
MariaDB Server 10.2.14 changed the order that CASE items are processed.
This broke the engine's CASE handling. This patch uses the new order
instead since this is what will be used in 10.2 and 10.3 going forward.
2018-04-16 19:21:28 +01:00
David Hall
fa43a962a8 MCOL-1325 rename table fails when database different than current database 2018-04-04 15:56:53 -05:00
David Hall
aa581b5dc3 MCOL-1234 Nested CASE filters not processed
Change the way buildCaseFunction() handles the ptWorkStack and the rcWorkStack.
2018-04-02 17:02:54 -05:00
David Hall
c83896609d MCOL-1196 add a comment 2018-03-27 15:23:47 -05:00
David Hall
73b1ac68fa MCOL-1196 Error when using OR in case THEN portion
In ha_calpont_execplan, Allow OR to be parsed; in searched_case parsing, reverse the order of processing arguments so that ptWorkStack.pop() is executed in the same order as the arguments being processed.

In func_case, modify to pass left and right to getBoolVal, if they exist.
2018-03-27 12:43:43 -05:00
Andrew Hutchings
bd71dd1d7a MCOL-1084 Fix TABLE_USAGE() when dict is 0 bytes
Dict size of 0 bytes returns NULL which means that the total count is 0.
This fix uses COALESCE to stop this happening.
2018-02-24 18:34:59 +00:00
Andrew Hutchings
54dea02f2a Fix view alias regression
An unneeded change from the fix for MCOL-1070 that broke vTpch01b.sql
2018-02-14 16:43:19 +00:00
Andrew Hutchings
c6e2a952f0 MCOL-1210 Allow procs to be called from any schema
The columnstore_info procs could only be called from within
columnstore_info due to them assuming format_filesize() is local. This
patch calls format_filesize() with an explicit schema allowing it to
work correctly.
2018-02-09 09:45:49 +00:00
benthompson15
05431bf705
Merge pull request #389 from mariadb-corporation/MCOL-962
Mcol 962
2018-02-05 15:55:59 -06:00
Andrew Hutchings
6f4cfcdc3b MCOL-1070 Fix exists in view subquery
When ExeMgr processes a correlated exists filter for a subquery inside a
view the de-duplication check doesn't work. We sometimes check unique
with the view name, sometimes not. We don't need the view name here so
remove it if we don't have it.

Also push the view name in the subquery.
2018-02-02 10:04:47 +00:00
David Hall
59f7e14230 MCOL-962 returned wrong value. 2018-01-30 16:25:15 -06:00
David Hall
243e9e9fb8 MCOL-962 format 2018-01-30 16:21:47 -06:00
David Hall
43f322ea2f MCOL-962 formating 2018-01-30 16:19:17 -06:00
David Hall
2bdcb159ed MCOL-962 change mcssystemreadonly to a tri state return flag. Test for 0 to see if the system is in a writable state, 2018-01-30 16:07:51 -06:00
Andrew Hutchings
5d9f9c819b Merge branch 'develop-1.0' into 1.1-merge-up-20180118 2018-01-18 16:28:08 +00:00
benthompson15
468421be66
Merge pull request #359 from mariadb-corporation/MCOL-962
MCOL-962 Add mcsSystemReady(), mcsSystemReadOnly() and mcsWritesSuspe…
2018-01-16 12:32:26 -06:00
David Hall
504fcf0778 MCOL-1128 Allow exeMgrThreadPool to use unlimited threads. The number will be limited by the number of sessions allowed in server. 2018-01-12 16:29:01 -06:00
David Hall
1ffeda44d6 MCOL-962 Add mcsSystemReady(), mcsSystemReadOnly() and mcsWritesSuspended() 2018-01-10 12:17:57 -06:00
benthompson15
39a2253ee1
Merge pull request #346 from drrtuy/MCOL-939
MCOL-939 Moved columnstore version information to columnstoreversion.h for 1.1.X
2017-12-19 13:21:19 -06:00
Andrew Hutchings
e9aff27e59 MCOL-1116 Fix I_S.CS_FILES for missing dbroot
If a dbroot is missing/offline mysqld would crash on
information_schema.columnstore_files due to not catching an exception.
This patch now catches the exception.
2017-12-15 20:33:07 +00:00
david hill
44c06f2cc3 MCOL-1106 - increased mysqld startup timeouts 2017-12-12 16:32:49 -06:00
Roman Nozdrin
bea47cc657 MCOL-939 Moved columnstore version information to columnstoreversion.h for 1.1.X 2017-12-12 22:53:33 +03:00
Andrew Hutchings
8babe4a35d Merge branch 'develop-1.0' into 1.0-merge-up 2017-12-12 10:01:14 +00:00
Andrew Hutchings
b657938709 MCOL-1068 Improve compression_ratio() procedure
* Uncompressed columns caused a miscalculation for compression ratio
* We now show a ratio such as 2:1 rather than a percentage
* compressed_data_size instead of file_size is used to show the
compression of actual data, ignoring the pre-allocated segment
2017-12-01 19:32:35 +00:00
Andrew Hutchings
ae9de1e426 Fix mergeup errors 2017-11-30 15:15:01 +00:00
Andrew Hutchings
37f673d121 Merge branch 'develop-1.0' into 1.0-merge-up 2017-11-30 15:09:11 +00:00
Andrew Hutchings
d60bc999c6 MCOL-1029 Skip cached conditions
Cached conditions are things like (TRUE OR FALSE). They don't actually
add any value to the query and were breaking our working stack trying to
process them.
2017-11-20 16:06:21 +00:00
Andrew Hutchings
98138fe493 MCOL-1029 Skip cached conditions
Cached conditions are things like (TRUE OR FALSE). They don't actually
add any value to the query and were breaking our working stack trying to
process them.
2017-11-20 16:04:20 +00:00
Andrew Hutchings
dadcd6e969
Merge pull request #319 from mariadb-corporation/MCOL-963
MCOL-963 fix for regressions introduced
2017-11-14 21:55:01 +00:00
David Hall
9a012444ec MCOL-963 fix for regressions introduced 2017-11-14 15:25:38 -06:00
Andrew Hutchings
766f0b812b MCOL-1008 Fix bad length on bulk DML insert
If a VARCHAR was defined as less than 255 characters and a data via LDI
or INSERT...SELECT was > 127 characters the length field would contain a
negative number.

In 1.0.11 and 1.1.0 this was not a problem because we cast the negative
back again. With MCOL-877 we stoped doing the double-cast. This patch
casts properly the first time.
2017-11-11 09:34:35 +00:00
Andrew Hutchings
854d32560a MCOL-1008 Fix bad length on bulk DML insert
If a VARCHAR was defined as less than 255 characters and a data via LDI
or INSERT...SELECT was > 127 characters the length field would contain a
negative number.

In 1.0.11 and 1.1.0 this was not a problem because we cast the negative
back again. With MCOL-877 we stoped doing the double-cast. This patch
casts properly the first time.
2017-11-11 09:31:09 +00:00
david hill
c84ea561e1 MCOL-998 - added in binlog_format 2017-11-08 12:10:01 -06:00