Comments (4)
Comparing to other fields requires us to address casting (see #37):
- We should make the filter clause values, a List[String] to a List[Object] (we can support List[String] for backward compatible)
- When we see List[String], we make it into:
{
"value": "the string value"
}
as below.
3. The Object in the List[Object] is now a new object:
{
"kind": "VALUE | CAST | FIELD"
"value": "a string value as before",
"type": "BOOLEAN, STRING, LONG, INTEGER, DOUBLE, FLOAT"
}
If the kind
is:
a. VALUE or is not present, we treat it as a string as before.
b. CAST, we use type
to cast the value to the requisite type
c. FIELD, we treat value as a field and extract from the object to compare it the field. If types don't match, we convert the value to the type of the other field (the LHS)
from bullet-core.
For c, we're going to follow Java's widening conventions. If the LHS is narrower than the RHS, then the cast will fail but since it's a field also, the query can always be rewritten to swap the RHS with the LHS (making the RHS the narrower one now)
from bullet-core.
@hbxie Let's keep this open till casting is implemented too.
from bullet-core.
Instead of having a CAST
kind
, a new field called type
was added instead, if when specified is used to cast
from bullet-core.
Related Issues (20)
- java.lang.NoSuchMethodError: com.yahoo.bullet.pubsub.PubSubMessage.<init> with (ByteArray)PubSubMessageSerDe HOT 6
- RestPubSub does not work with ByteArrayPubSubMessageSerDe
- Additive Windows should reset when in partition mode
- Add Group By Count Distincts
- Round off Count Distincts when approximating
- Fix '?' being returned for infinity for Distribution queries
- Support casting
- Support SESSION window
- Support HOPPING window
- Support full SLIDING windows
- Add post aggregations HOT 1
- Maximum Window Count as a terminating condition
- Support various point generation for DISTRIBUTION queries
- Support operations Like FieldName[2].key == SomeValue HOT 2
- Reduce the size of Querier Object for fast serialization/deserialization
- Allow only one OrderBy in post aggregation list
- Support Computations and Expressions in Filters and Projections
- Return warnings if Bullet was unable to do exactly what the query asked, used defaults etc
- Support custom Metadata in PubSubMessages
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 bullet-core.