Comments (5)
Looks like it considers the entered time is in UTC instead of converting it to UTC internally from the current time zone.
MRE:
mysql> set global timezone='Asia/Novosibirsk'; drop table if exists rt1; create table rt1(tid timestamp); INSERT into rt1 (id, tid) values (3, '2022-01-01T00:00'); SELECT id, date_format(tid, '%Y-%m-%dT%H:%M') from rt1;
--------------
set global timezone='Asia/Novosibirsk'
--------------
Query OK, 0 rows affected (0.00 sec)
--------------
drop table if exists rt1
--------------
Query OK, 0 rows affected (0.08 sec)
--------------
create table rt1(tid timestamp)
--------------
Query OK, 0 rows affected (0.00 sec)
--------------
INSERT into rt1 (id, tid) values (3, '2022-01-01T00:00')
--------------
Query OK, 1 row affected (0.00 sec)
--------------
SELECT id, date_format(tid, '%Y-%m-%dT%H:%M') from rt1
--------------
+------+------------------------------------+
| id | date_format(tid, '%Y-%m-%dT%H:%M') |
+------+------------------------------------+
| 3 | 2022-01-01T07:00 |
+------+------------------------------------+
1 row in set (0.00 sec)
--- 1 out of 1 results in 0ms ---
from manticoresearch.
Same with hour()
:
select hour(tid) from rt1
--------------
+-----------+
| hour(tid) |
+-----------+
| 7 |
+-----------+
1 row in set (0.00 sec)
from manticoresearch.
Another failing test is col_434
when run in the columnar mode - https://github.com/manticoresoftware/columnar/runs/24873252849
from manticoresearch.
These are actually two unrelated issues. One issue is using UTC instead on local timezone on inserts and another issue is treating quoted timestamps as strings that need to be parsed via cctz
from manticoresearch.
Fixed in f6af49b
from manticoresearch.
Related Issues (20)
- Error: GPG check FAILED when installing in platform linux/arm64 image almalinux:9 HOT 7
- Non exist chunk crash
- Can't import table with wordforms HOT 10
- plain index needs autodetection of date formats for timestamp fields
- Try to load also versioned modules - as lib_manticore_columnar.so.24, lib_manticore_secondary.dll.14 etc.
- Multi-query request gets stuck
- FLUSH RAMCHUNK fails with "Too many open files" (rt_mem_limit 10GB) HOT 5
- Engine columnar crash with infinity core dump loop HOT 11
- Crash when search in rt table with non-empty index_token_filter HOT 2
- Poor work with plugin_dir and index_token_filter HOT 2
- Upload large data file for manticore investigate the issue for us HOT 2
- Spellcheck + dictionaries HOT 2
- searchd hangs on stop after FREEZE and FLUSH RAMCHUNK
- Improvement of errors when updating distributed table HOT 1
- Improvement of errors when renaming a RT table HOT 1
- CI: Push docker test-kit after tests HOT 1
- Allow Buddy to exceed the max_connections configuration.
- JOIN: crash on count(*) w/o group by HOT 1
- JOIN: wrong count(*)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manticoresearch.