Comments (7)
Can't you use SHRINK?
from warp10-platform.
Or you can call BUCKETIZE with bucketizer.last and adapted last bucket + bucketcount
from warp10-platform.
I don't think SHRINK or bucketizer.last will help me to have clear control on what I'm removing. Here's the type of WarpScript that I want to write:
[ SWAP mapper.whatever $pre $post 0 ] MAP
$pre DROPFIRSTBUCKETS
$post DROPLASTBUCKETS
from warp10-platform.
You have complete control of what you want to remove using BUCKETIZE as you can chose the last bucket timestamp, the span and the count to remove buckets on either end of the GTS.
If your GTS is filled, you can also use STRICTMAPPER to only apply the mapper on windows which have the specified number of elements.
from warp10-platform.
Yes, but using this method, I need to deal with bucket timestamp, span and count. I was thinking about dealing with buckets in the case of bucketized GTS.
from warp10-platform.
Timestamp of the last bucket, bucket span and bucket count can be extracted from a GTS using the functions
LASTBUCKET
BUCKETSPAN
BUCKETCOUNT
It's then very easy to build a macro which does what you want.
from warp10-platform.
Ok, I'll do a macro, thanks!
from warp10-platform.
Related Issues (20)
- Adding data with attribute does not seem to reflect properly on Warp 10 studio HOT 4
- Mixed comments are incorrectly parsed HOT 1
- reverse CLIP ? HOT 1
- [Bug] FOREACH loop execution can push BigDecimal values on the stack
- Directory cleaner HOT 7
- Error in bootstrap with TOKENGEN
- inconsistent result of divide by 0 within gts arithmetics HOT 3
- HTTP does not support digest authorization
- Warp10 is not available at 8080 port HOT 2
- BUCKETIZE.CALENDAR and negative timezones
- SLEEP does not behave correctly in concurrent execution HOT 1
- max execution time versus stop interruption HOT 2
- VALUESPLIT does not split boolean values as expected
- Bucketize not working perfectly in latest version HOT 1
- Warp Studio Behaving differently with Data Stored in the DB versus Data parsed in the memory HOT 2
- jdk17 breaks GOLDWRAP HOT 3
- SHRINK does not alter bucketize status HOT 2
- mixed type in filter.any.gt HOT 1
- BUCKETIZE.CALENDAR, or UNBUCKETIZE.CALENDAR with last bucket in the future HOT 1
- showuuid in FIND HOT 1
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 warp10-platform.