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 on inserting null value for MVA field in Elastic-like bulk request HOT 2
- Crash on inserting null value for numeric fields in Elastic-like bulk request HOT 2
- SHOW CREATE TABLE doesn't support secondary_index='1' HOT 1
- Using expression returns a wrong value for a joined table HOT 2
- Ability to apply lcs to multiple-matches query via API HOT 2
- query_log_commands support for HTTP interface and errors
- refactor net buffer code to not allocate max_packet_size buffer HOT 2
- IDF boosters in HTTP requests with match HOT 3
- Incorrect Size Handling for bigint Type via SQL and HTTP HOT 2
- Secondary indexes vs exclude filters and pseudo_sharding=1
- manticore_new_cluster broken HOT 2
- Add missing endpoints to OpenAPI documentetion
- Stopwords behave incorrectly with ngram HOT 1
- "unable to write to binlog: : write error: Bad file descriptor" with binlog_common = 1
- Write throughput degradation in 6.3.3 HOT 1
- Feature request: ALTER TABLE RENAME COLUMN
- sql_attr_multi query causes "Aborted connection" warning with MariaDB HOT 1
- Doc: Add Superset integration section
- Rebuild JSON SI on ALTER REBUILD SECONDARY
- KT-Elastic integration : Search result json schema issue HOT 2
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.