Comments (6)
This issue blocks manticoresoftware/manticoresearch-php#210
from manticoresearch.
It's not a big deal to implement it, but we need to prepare the syntax first. Let's discuss it together.
from manticoresearch.
Here is a suggestion for an interface we can use:
{
"join": [
{
"type": "inner",
"table": "another",
"on": [
{
"left": {
"table": "one",
"field": "id"
},
"operator": "=",
"right": {
"table": "another",
"field": "id"
}
}
]
}
]
}
Explanation of the join syntax:
- The
join
property is an array that contains one or more join objects. - Each join object represents a single join operation and has the following properties:
type
: Specifies the type of join. In the example, it is set to"inner"
, indicating an inner join. Other possible values could be"left"
,"right"
, or"full"
for left join, right join, or full outer join, respectively, depending on what Manticore supports.table
: Specifies the name of the table to join with.on
: An array of join conditions.- Each condition object represents a single join condition and has the following properties:
left
: Represents the left side of the join condition.table
: Specifies the table name for the left side of the condition.field
: Specifies the field name for the left side of the condition.
operator
: Specifies the comparison operator for the join condition. In the example, it is set to"="
, indicating an equality condition. Other possible operators could be"<"
,">"
,"<="
,">="
, etc., depending on what Manticore currently supports.right
: Represents the right side of the join condition.table
: Specifies the table name for the right side of the condition.field
: Specifies the field name for the right side of the condition.
- Each condition object represents a single join condition and has the following properties:
from manticoresearch.
@glookka pls review the proposed syntax, do you have any objections?
from manticoresearch.
- Is this syntax
"left": {
"table": "one",
"field": "id"
},
"operator": "=",
"right": {
"table": "another",
"field": "id"
}
better than something like this?
"condition": "one.id=another.id"
- If we keep the abovementioned syntax, we still have range filters in our json queries that use syntax operation names "lt", "gte", "equals". We might want to keep these names consistent.
from manticoresearch.
better than something like this?
"condition": "one.id=another.id"
It seems so as the latter is not structured enough. Not the json way.
If we keep the abovementioned syntax, we still have range filters in our json queries that use syntax operation names "lt", "gte", "equals". We might want to keep these names consistent
Good point. Yes, we'd probably better stick to the existing names.
from manticoresearch.
Related Issues (20)
- Allow set columnar_no_fast_fetch option for RT table creation
- Auto-bootstrapping an all-down cluster HOT 2
- The command parser does not return an error for infix wrong string when creating a table. HOT 3
- Conversational Search (RAG) HOT 1
- String equal in JOIN HOT 5
- Update deps action is not working when it's called from the main branch HOT 1
- Crash with signal 11 when executing alter table command
- The parameter expansion_limit cannot be added to a real-time type table.
- Unable to kill default searchd HOT 6
- Freeze while inserting huge texts HOT 5
- Unable to update text field HOT 1
- Setting doc id inside 'doc' fails /bulk insert HOT 1
- forbid the mapping `U+any->U+0020`
- remove tabulation from the charset_table
- Complete Open API documentation
- Incorrect data format in response for Kibana 'Range' request HOT 3
- Incorrect response for complex Kibana request that includes 'Range' HOT 5
- Problems configuring logstash using manticore HOT 44
- alter cluster C add tbl1, tbl2, tbl3 HOT 1
- trim строк конфига 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.