Comments (1)
version:cnosdb 2.3.3, revision 3b52b57
public ❯ drop database if exists gapfill_db;
create database gapfill_db WITH TTL '1000000d';
drop table if exists gapfill_db.m2;
CREATE TABLE IF NOT EXISTS gapfill_db.m2(f0 BIGINT , f1 DOUBLE , TAGS(t0, t1, t2) );
INSERT gapfill_db.m2(TIME, f0, f1, t0, t1)
VALUES
('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
('1999-12-31 00:00:00.005', 222, 333, 'tag12', 'tag22'),
('1999-12-31 00:00:00.010', 333, 222, 'tag13', 'tag23'),
('1999-12-31 00:00:00.015', 444, 111, 'tag14', 'tag24'),
('1999-12-31 00:00:00.020', 222, 555, 'tag11', 'tag21'),
('1999-12-31 00:00:00.025', 333, 444, 'tag12', 'tag22'),
('1999-12-31 00:00:00.030', 444, 333, 'tag13', 'tag23'),
('1999-12-31 00:00:00.035', 555, 222, 'tag14', 'tag24');
Query took 0.006 seconds.
Query took 0.002 seconds.
Query took 0.001 seconds.
Query took 0.001 seconds.
+------+
| rows |
+------+
| 8 |
+------+
Query took 0.019 seconds.
public ❯ SELECT
t0,
time_window_gapfill(time, interval '10 milliseconds') as minute,
locf(avg(f1)) as xx
from gapfill_db.m2
where time between timestamp '1999-12-31T00:00:00.000Z' and timestamp '1999-12-31T00:00:00.055Z'
group by t0, minute;
+-------+-------------------------+-------+
| t0 | minute | xx |
+-------+-------------------------+-------+
| tag11 | 1999-12-31T00:00:00 | 444.0 |
| tag11 | 1999-12-31T00:00:00.010 | 444.0 |
| tag11 | 1999-12-31T00:00:00.020 | 555.0 |
| tag11 | 1999-12-31T00:00:00.030 | 555.0 |
| tag11 | 1999-12-31T00:00:00.040 | 555.0 |
| tag11 | 1999-12-31T00:00:00.050 | 555.0 |
| tag12 | 1999-12-31T00:00:00 | 333.0 |
| tag12 | 1999-12-31T00:00:00.010 | 333.0 |
| tag12 | 1999-12-31T00:00:00.020 | 444.0 |
| tag12 | 1999-12-31T00:00:00.030 | 444.0 |
| tag12 | 1999-12-31T00:00:00.040 | 444.0 |
| tag12 | 1999-12-31T00:00:00.050 | 444.0 |
| tag13 | 1999-12-31T00:00:00 | |
| tag13 | 1999-12-31T00:00:00.010 | 222.0 |
| tag13 | 1999-12-31T00:00:00.020 | 222.0 |
| tag13 | 1999-12-31T00:00:00.030 | 333.0 |
| tag13 | 1999-12-31T00:00:00.040 | 333.0 |
| tag13 | 1999-12-31T00:00:00.050 | 333.0 |
| tag14 | 1999-12-31T00:00:00 | |
| tag14 | 1999-12-31T00:00:00.010 | 111.0 |
| tag14 | 1999-12-31T00:00:00.020 | 111.0 |
| tag14 | 1999-12-31T00:00:00.030 | 222.0 |
| tag14 | 1999-12-31T00:00:00.040 | 222.0 |
| tag14 | 1999-12-31T00:00:00.050 | 222.0 |
+-------+-------------------------+-------+
Query took 0.012 seconds.
from cnosdb.
Related Issues (20)
- [BUG][node offline]After the node goes offline, data is still being written to the offline node. HOT 3
- [doc]It is recommended to add relevant instructions for the ttl parameter HOT 6
- [discuss][node offline]The process still exists after the node goes offline. Is there a waste of resources and ports?
- [Feature]The copyinto export triggers the write to be configurable and file name optimized HOT 1
- [BUG][resource status]The member role cannot find the deletion information of db
- [optimization]It is expected that the check subcommand of cnosdb can be optimized
- [BUG] cnosdb-cli cannot recognize the -p parameter HOT 1
- [optimization]When OOM occurs, it is recommended to print the log of cnosdb being killed.
- [Bug] restart_test failed HOT 1
- [Bug] test_reselect_new_leader failed HOT 1
- Creating an external table in the format of `ndjson` is invalid
- [BUG][COPY INTO] "Too many open files" occasionally appears when exporting HOT 5
- [DISCUSS]Is the current way of handling "division by zero calculation" reasonable?
- [BUG]Computing and storage separate deployment "show datanodes" don't show query node. HOT 1
- Error creating `placement_policy` using `singleton` mode
- [BUG][function][count]Calculate the number of tags, cnosdb process panic HOT 1
- [BUG]The data node "Unreachable" cannot be restored to "healthy" after HOT 3
- [Bug][Doc] The information in the Infrastructure Storage Separation section of the documentation is outdated.
- query and insert very slow HOT 2
- [BUG]Container version 2.4 is upgraded to community-2024-02-19 data is incompatible 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 cnosdb.