[MCOL-1118] Create Events on Columnstore Created: 2017-12-17 Updated: 2017-12-22 Resolved: 2017-12-22 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.0.7 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Minor |
| Reporter: | BOBY PETER | Assignee: | David Thompson (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Mariadb Columnstore 1.0.7, |
||
| Attachments: |
|
| Description |
|
Mariadb Columnstore supports creation of a simple event with just inserting current date, hour and second to a columnstore table. However, if I try to insert future dates as shown below, it doesn't insert.
create table eventtest create event testing |
| Comments |
| Comment by David Thompson (Inactive) [ 2017-12-19 ] | ||||||||||||||||||||||||||||||||||||||||
|
I tried running this and it creates future dates for me:
-----
----- I don't know if you are asking if it should populate on future invocations every minute? As the insert stands it won't and will only trigger new entries after 10am since you have hour hardcoded to 10 and don't join on minutes. | ||||||||||||||||||||||||||||||||||||||||
| Comment by BOBY PETER [ 2017-12-19 ] | ||||||||||||||||||||||||||||||||||||||||
|
I don't know if you are asking if it should populate on future invocations every minute? As the insert stands it won't and will only trigger new entries after 10am since you have hour hardcoded to 10 and don't join on minutes. If I alter my EVENT as shown below, it populates the table every minute. This is good... -----
-----
----- BUT If I alter the same event as the one I mentioned very first OR the one below, the table no longer gets populated. _alter event testing Additional issue found ----------------
----------------
---------------- Please find the attached..... | ||||||||||||||||||||||||||||||||||||||||
| Comment by David Thompson (Inactive) [ 2017-12-21 ] | ||||||||||||||||||||||||||||||||||||||||
|
Sorry, i completely missed you were meaning using events. Yes i can see this. Currently as you may or may not know we have a fork of the mariadb server and we have some modifications to the parser to layer in columnstore execution. My guess (which needs to be confirmed) is that the event scheduler is a feature / path that is not currently supported. The 2nd case is not referencing any columnstore tables which is probably why it works. This might be an easy fix or it might not we'll need to analyze but i'll need to consider this as more of an improvement for now. If you are using this to maintain a dimension / lookup table could you make it an innodb table and use cross engine join? | ||||||||||||||||||||||||||||||||||||||||
| Comment by BOBY PETER [ 2017-12-22 ] | ||||||||||||||||||||||||||||||||||||||||
|
Yes. Cross engine is a good option. However, I tried a latest version, 1.1.2, which worked fine with events. BTW Thanks for the replies David. New version works just fine. | ||||||||||||||||||||||||||||||||||||||||
| Comment by David Thompson (Inactive) [ 2017-12-22 ] | ||||||||||||||||||||||||||||||||||||||||
|
Ok great - thanks! |