Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Add theta-join binary operator #48

Open
terencode opened this issue Oct 8, 2020 · 3 comments
Open

Add theta-join binary operator #48

terencode opened this issue Oct 8, 2020 · 3 comments
Labels
enhancement waiting patch Someone please make a patch for this!

Comments

@terencode
Copy link

In our course, we use the theta-join (θ-join) operator: https://en.wikipedia.org/wiki/Relational_algebra#%CE%B8-join_and_equijoin

@ltworf
Copy link
Owner

ltworf commented Oct 8, 2020

As I said to the other hundred of people who wrote about this: "If you have a good suggestion for the syntax of this operator, please tell me."

Right now relational has 2 kinds of operators:

  • binary: expr OP expr
  • unary: OP params (expr)

This operator would fit into its own new category and so far I've had no nice idea on how to implement the syntax and grammar. The implementation of the operator itself is trivial.

So far, nobody has ever come forward with a suggestion.

Until that happens, you can just do σ condition (A ⋈ B)

@terencode
Copy link
Author

terencode commented Oct 8, 2020

Sorry if this was requested before, I didn't see anything about it in the documentation or closed issues.

Maybe you could implement it this way:

exp OP(cond) exp

@ltworf
Copy link
Owner

ltworf commented Oct 18, 2020

They normally ask for it via the survey button.

Hm, it could make sense to implement the syntax in that way.

@ltworf ltworf added the waiting patch Someone please make a patch for this! label Aug 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement waiting patch Someone please make a patch for this!
Projects
None yet
Development

No branches or pull requests

2 participants