Feat: add Function: `current_date` & add Type: `LogicalType::Time` by KKould · Pull Request #181 · KipData/KiteSQL
What problem does this PR solve?
- perf
Tuple::serialize_to: avoidDataValue::to_rawfrequently creating Vec - add Function:
current_date
select current_date; +----------------+ | current_date() | +================+ | 2024-03-25 | +----------------+
- add Type:
LogicalType::Time
CREATE TABLE test (id int primary key, c1 time); INSERT INTO test VALUES (0, '01:02:03'), (1, '02:03:03'); select * from test; +---------+----------+ | test.id | test.c1 | +====================+ | 0 | 01:02:03 | |---------+----------| | 1 | 02:03:03 | +---------+----------+
Issue link: #130
What is changed and how it works?
Code changes
- Has Rust code change
- Has CI related scripts change
Check List
Tests
- Unit test
- Integration test
- Manual test (add detailed scripts or steps below)
- No code
Side effects
- Performance regression: Consumes more CPU
- Performance regression: Consumes more Memory
- Breaking backward compatibility