Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: No implementation for sql intersect #2230

Closed
zbrookle opened this issue Jun 2, 2020 · 0 comments · Fixed by #2250
Closed

ENH: No implementation for sql intersect #2230

zbrookle opened this issue Jun 2, 2020 · 0 comments · Fixed by #2250
Labels
feature Features or general enhancements

Comments

@zbrookle
Copy link
Contributor

zbrookle commented Jun 2, 2020

There's currently no implementation of a set intersection between tables, which seems like it would be needed in the future for compatibility with sql interfaces, for example

SELECT column1 [, column2 ]
FROM table1 [, table2 ]
[WHERE condition]

INTERSECT

SELECT column1 [, column2 ]
FROM table1 [, table2 ]
[WHERE condition]

I would imagine the syntax would be along the lines of (with table being a TableExpr):

table1.intersect(table2)

also with an option for distinct

table1.intersect(table2, distinct=True)
@datapythonista datapythonista added the feature Features or general enhancements label Jul 2, 2020
@jreback jreback added this to the Next Bugfix Release milestone Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants