[MCOL-4334] Procedure Hanging When Using Columnstore Table Created: 2020-10-02 Updated: 2020-10-13 Resolved: 2020-10-12 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 5.4.1 |
| Fix Version/s: | 5.4.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Todd Stoffel (Inactive) | Assignee: | David Hall (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | CustomerRequest | ||
| Description |
|
When running the following command outside of a procedure, the query completes fine:
However when wrapped in a procedure it hangs on "Creating sort index":
In order for this issue to manifest, the table must contain millions of records. A small test of a few mock data rows will not suffice.
|
| Comments |
| Comment by David Hall (Inactive) [ 2020-10-09 ] |
|
This requires at least a 16GB VM |
| Comment by Daniel Lee (Inactive) [ 2020-10-09 ] |
|
Build tested: 5.4.3-1 ( Drone custom build #905 ) It look good. Test #1. Table with 6,001,215 rows: query time: Query OK, 5094623 rows affected (36.201 sec) Stored Procedure time: MariaDB [gistgt]> CALL PopulateLocalDesc_test1('20200823'); Test #2. Table with 24,004,860 rows: query time: Query OK, 20378492 rows affected (2 min 10.834 sec) Stored Procedure time: MariaDB [gistgt]> CALL PopulateLocalDesc_test1('20200823'); |
| Comment by Roman [ 2020-10-12 ] |
|
Plz review. |
| Comment by Gagan Goel (Inactive) [ 2020-10-12 ] |
|
David.Hall I have merged the PR to develop-1.5 for your testing. drrtuy I have added a minor comment for the develop-1.5 PR. Also, can you create a similar PR for develop? |
| Comment by David Hall (Inactive) [ 2020-10-12 ] |
|
I ran a series of stored procedures, some with large data sets and some small. All passed without any noticeable execution time difference from Columnstore 1.2 . I ran the query and Stored Procedure list in this Jira, and both ran in about the same time. |