[MDEV-16508] spider: sql_mode not maintained between spider node and data nodes Created: 2018-06-18 Updated: 2020-08-25 Resolved: 2019-06-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Fix Version/s: | 10.4.7 |
| Type: | Task | Priority: | Major |
| Reporter: | Simon Mudd | Assignee: | Kentoku Shiba (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | spider | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
This was noticed some time ago and I believe is still present. No explicit bug report was made at the time. If the spider node and data nodes have a different sql_mode setup then this may cause issues. Example seen was to have sql_mode = STRICT_TRANS_TABLES on data nodes and the spider node and some input data which was accepted on the spider node was rejected by the data node as not being valid. This broke the data load. Other mismatches could also trigger issues. My expectation would for the spider node to validate the data nodes' sql_mode matches the spider node, or to push out the spider node's current sql_mode setting (or when it changes as we can have session local sql_nodes) to the data nodes on connection or as the value changes. I think this still applies in spider on 10.3. |
| Comments |
| Comment by Simon Mudd [ 2018-07-04 ] |
|
I would also expect this to affect:
Basically some of the other session attributes which if not managed consistently between client and server can cause issues. |
| Comment by Kentoku Shiba (Inactive) [ 2019-03-13 ] |
|
The timezone issue is fixed at About sql_mode, I added a pushdown feature with the following option.
|
| Comment by Kentoku Shiba (Inactive) [ 2019-03-13 ] |
|
Please review this changes. |
| Comment by willhan [ 2019-06-28 ] |
|
kentoku |
| Comment by Kentoku Shiba (Inactive) [ 2019-06-28 ] |
|
willhan |