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

5453 Commits

Author SHA1 Message Date
benthompson15
a24be570cf Merge pull request #1823 from dhall-MariaDB/MCOL-4638
MCOL-4638 Add csNumAgg to count(distinct) with UM only
2021-03-26 13:18:24 -05:00
David Hall
1e3ae2aa6d MCOL-4638 Add csNumAgg to count(distinct) with UM only 2021-03-26 10:05:01 -05:00
Alexander Barkov
0854d71d4e MCOL-4640 Narrow DECIMAL precision loss in CAST(AS SIGNED) and CHAR() 2021-03-26 19:03:13 +04:00
Gagan Goel
77fba49e76 Merge pull request #1820 from mariadb-corporation/bar-develop-MCOL-4633
MCOL-4633 Remove duplicate code for DECIMAL to int64_t rounding conve…
2021-03-25 10:13:05 -04:00
Alexander Barkov
c0b8445225 MCOL-4633 Remove duplicate code for DECIMAL to int64_t rounding conversion
Detailed change list:

- Splitting out the narrow part of "class Decimal" into a separate class TDecimal64

- Adding a method TDecimal64::toSInt64Round()

- Reusing the method TDecimal64::toSInt64Round() in:
   * Func_cast_signed::getIntVal()
   * Func_char::getStrVal()
   * Func_elt::getStrVal()
   * makedate()
   * Func_maketime::getStrVal()

   Note, reusing this method in Func_char::getStrVal() also fixed this bug:
     MCOL-4634 CHAR(negativeWideDecimal) is not like InnoDB
   because the old code handled negative wide decimal values
   in a wrong way.

- Adding a new class TDecimal128 for symmetry.
  Moving a few wide decimal methods and constexpr's from Decimal to TDecimal128.
  The new class TDecimal128 does not do much at this point yet.
  Later we should be able to use TDecimal128 vs TDecimal64 in templates.
2021-03-25 17:56:10 +04:00
Sergey Zefirov
de8ef1eb2d A test to investigate problems, without expected results
Debug logs

Debug logs - fix typo

Debug logs

Debug logs

debug logs

debug logs

debug logs

debug logs

debug logs

debug logs

debug logs

debug logs

Solution to test

Remove debug logs
2021-03-24 15:31:48 +03:00
mariadb-RomanNavrotskiy
ffbcb84908 ci: default client charset for regression run 2021-03-24 10:15:57 +02:00
Roman Nozdrin
2f2a2d81b6 Merge pull request #1818 from mariadb-corporation/fix-debs
ci: liburing build dependency autobake
2021-03-24 08:01:25 +03:00
Roman Nozdrin
65e0a69914 Merge pull request #1815 from benthompson15/MCOL-4554
MCOL-4554: use jemalloc provided by repo.
2021-03-23 16:02:06 +03:00
mariadb-RomanNavrotskiy
04e33ba00b ci: liburing and libpmem build dependency autobake 2021-03-23 13:08:38 +02:00
Gagan Goel
894ebced33 Merge pull request #1817 from mariadb-corporation/bar-develop-MCOL-4629
MCOL-4629 Add a helper method mcsv1_UDAF::toDouble()
2021-03-23 05:46:31 -04:00
Alexander Barkov
ca7a310309 MCOL-4629 Add a helper method mcsv1_UDAF::toDouble() 2021-03-23 13:23:48 +04:00
David.Hall
18dc983632 Merge pull request #1816 from dhall-MariaDB/MCOL-4620
MCOL-4620 Add charset to various RowGroup initializers
2021-03-22 14:04:50 -05:00
Alexander Barkov
765858bc5b MCOL-4498 LIKE is not collation aware 2021-03-22 20:42:01 +04:00
David Hall
13b7a794e4 MCOL-4620 Add charset to various RowGroup initializers
Specifically to operator+=
2021-03-19 16:57:54 -05:00
benthompson15
c74beb6178 MCOL-4554: use jemalloc provided by repo. 2021-03-18 12:35:16 -05:00
Denis Khalikov
42a81069d6 Update dmFilePathArgs_t struct.
* This patch updates `dmFilePathArgs_t` struct to eliminate common code.
* This patch add `dmFilePathPart_t` which represents a part of the full path
  to a segment file.
2021-03-15 15:18:46 +03:00
Roman Nozdrin
5943261bfc Merge pull request #1812 from mariadb-corporation/debug-develop-mtr-centos8
ci: mtr on custom build events, env variable for delaying mtr
2021-03-12 23:38:21 +03:00
mariadb-RomanNavrotskiy
3331c5baa9 ci: enable mtr on custom build events, add env variable for delaying tests 2021-03-12 22:12:12 +02:00
Roman Nozdrin
7add4758d5 Merge pull request #1807 from dhall-MariaDB/MCOL-4516-dev
MCOL-4516 check for var_pop < 0
2021-03-11 13:44:15 +03:00
Roman Nozdrin
207fc272f7 Merge pull request #1804 from denis0x0D/review_fixes
MCOL-4566: Update on review.
2021-03-10 12:35:05 +03:00
David Hall
af20387985 MCOL-4516 check for var_pop < 0
In some cases, because of rounding error, var_pop will evaluate to some value just less than 0. We check for this and force to round to 0.
2021-03-09 13:36:10 -06:00
Denis Khalikov
4ceda7173d MCOL-4566: Update on review.
* Use `literal::UnsignedInteger` instead of `atoi`.
* Combine common code for `_fromDir`, `_fromFile` to `_fromText`.
* Pass `dmFilePathArgs_t` as a const reference instead of pointer,
  don't write result codes to this struct.
2021-03-09 18:45:29 +03:00
Roman Nozdrin
508d5455a8 Merge pull request #1795 from denis0x0D/MCOL-4566/CompressedHeader
MCOL-4566: Extend CompressedDBFileHeader struct with new fields.
2021-03-08 12:24:59 +03:00
Roman Nozdrin
fcc946c848 Merge pull request #1794 from denis0x0D/MCOL-4566/file2Oid
MCOL-4566: Add file2Oid function.
2021-03-08 12:24:31 +03:00
Denis Khalikov
a2efa1efeb MCOL-4566: Extend CompressedDBFileHeader struct with new fields.
* This patch extends CompressedDBFileHeader struct with new fields:
  `fColumWidth`, `fColDataType`, which are necessary to rebuild extent map
  from the given file. Note: new fields do not change the memory
  layout of the struct, because the size is calculated as
  max(sizeof(CompressedDBFileHeader), HDR_BUF_LEN)).

* This patch changes API of some functions, by adding new function
  argument `colDataType` when needed, to be able to call `initHdr`
  function with colDataType value.
2021-03-05 22:15:34 +03:00
Roman Nozdrin
5be4bfe647 Merge pull request #1775 from mariadb-corporation/arm-build
Arm build
2021-03-05 10:28:57 +03:00
mariadb-RomanNavrotskiy
35f971c885 ci: arm64 pipelines on centos:8 develop branch for the moment 2021-03-04 22:54:08 +02:00
Denis Khalikov
797716ef13 MCOL-4566: Add file2Oid function.
* This patch adds file2Oid function. This function is needed
  to map ColumnStore file name to an oid, partition and segment.
* Tests added to check that this function works correctly.
* This patch is related to MCOL-4566, so it adds a new file with GTests.

Note: The description for the functions follows the description style
in the current file.
2021-03-04 23:37:23 +03:00
Roman Nozdrin
2d6d8b901e Merge pull request #1792 from denis0x0D/write_engine_tests
Fixes for shared_components_tests build, move test to tests directory.
2021-03-04 11:10:19 +03:00
David.Hall
df14b3b50c Merge pull request #1793 from benthompson15/MCOL-4483-dev2
MCOL-4483: remove unused directories and fix some default paths.
2021-03-03 13:26:37 -06:00
Denis Khalikov
ef8915a884 Fixes for shared_components_tests build, move test to tests directory.
* Use const uint8_t* instead of uint64_t.
* Turn off 'testExtentCrWOPreallocBin' test body since this test
turned off after MCOL-641 when CalpontSystemCatalog::BINARY type was removed.
* Move shared_components_tests to tests directory.
2021-03-03 14:16:08 +03:00
David.Hall
e905e60a01 Merge pull request #1791 from benthompson15/MCOL-4573-dev
MCOL-4573: increase cpimport.bin arg vector from 20 to 50
2021-03-02 18:19:07 -06:00
benthompson15
ba4b7e5a35 MCOL-4573: increase cpimport.bin arg vector from 20 to 50 2021-03-02 18:16:32 -06:00
benthompson15
432c9b21ae MCOL-4483: remove unused directories and fix some default paths. 2021-03-02 10:28:23 -06:00
Roman Nozdrin
577890c3fa Merge pull request #1783 from mariadb-corporation/4335-develop
ci: workaround for autobake 4535 workaround (develop branch)
2021-02-26 12:50:22 +03:00
Roman Nozdrin
071dd37b09 Merge pull request #1774 from mariadb-corporation/bar-develop-strtodec
Adding tests for MCOL-4531 New string-to-decimal conversion implement…
2021-02-26 10:48:23 +03:00
mariadb-RomanNavrotskiy
1b94c8f839 ci: workaround for autobake 4535 workaround 2021-02-25 17:21:07 +02:00
David.Hall
d20100b534 Merge pull request #1782 from jmrojas2332/MCOL-4546-develop
MCOL-4546 Store BRM files locally
2021-02-24 12:01:39 -06:00
Jose Rojas
38458f5a26 MCOL-4546 Store BRM files locally 2021-02-24 15:51:51 +00:00
Alexander Barkov
00ecf3fa31 Adding tests for MCOL-4531 New string-to-decimal conversion implementation
And also for:

- MCOL-4462 CAST(varchar_expr AS DECIMAL(M,N)) returns a wrong result
- MCOL-4500 Bit functions processing throws internally trying to cast char into decimal representation
- MCOL-4532 CAST(AS DECIMAL) returns a garbage for large values

(which were fixed by the same patch)
2021-02-24 12:16:52 +04:00
David.Hall
b35e1ee395 Merge pull request #1769 from mariadb-corporation/bar-develop-MCOL-4527
A join patch for MCOL-4527 (a performance hack) and MCOL-4539 (a bug …
2021-02-17 13:31:35 -06:00
Roman Nozdrin
8ca688d8d5 Merge pull request #1772 from mariadb-corporation/develop-fix-4-server-upmerge
changes to match upmerge from 10.4
2021-02-17 20:33:57 +03:00
DavidHall
907e99cf20 changes to match upmerge from 10.4 2021-02-17 17:11:47 +00:00
Roman Nozdrin
27242f2363 Merge pull request #1767 from benthompson15/MCOL-4483-dev
MCOL-4483: Fix and consolidate log files and cpimport logging.
2021-02-17 12:29:40 +03:00
Gagan Goel
64a5997812 Merge pull request #1766 from dhall-MariaDB/MCOL-4472
MCOL-4472 remove mcol641-functions from failed file
2021-02-17 01:00:32 -05:00
Alexander Barkov
5bcc1cd1f0 A join patch for MCOL-4527 (a performance hack) and MCOL-4539 (a bug fix)
- MCOL-4527 Simple query performace is degraded between 5.4 and 5.5

  xxx_nopad_bin collations are now around 30% faster on simple queries like:

    SELECT * FROM t1 WHERE short_char_column_nopad_bin = 'literal'

  The gain is achieved by comparing two short CHAR values as uint64_t.

  Note, this patch does not affect xxx_bin collations!
  It wouldn't be correct to apply the same improvement for xxx_bin
  collations (i.e. with PAD SPACE attribute), because it would change
  the way how trailing spaces are compared.

- MCOL-4539 WHERE short_char_column='literal' ignores the collation on a huge table

  Only the first thread used a correct collation when performing:
    WHERE short_char_char='literal'
  Other (15) threads used the server default collation, because
  the charsetNumber attribute was not copyed during cloning.

- This patch also adds mtr/basic/suite.opt, so "mtr" can run without --extern.
2021-02-16 18:45:18 +04:00
benthompson15
afa88866bb MCOL-4483: Fix and consolidate log files and cpimport logging. 2021-02-12 15:40:16 -06:00
Roman Nozdrin
ceae2118a2 Merge pull request #1760 from benthompson15/MCOL-4535-dev
MCOL-4535: remove readline
2021-02-12 22:42:09 +03:00
Roman Nozdrin
229fd5d1bd Merge pull request #1756 from benthompson15/MCOL-4193-dev
MCOL-4193-dev
2021-02-12 22:41:29 +03:00