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

feat: support empty URL for local backends in ibis.connect() #8450

Closed
1 task done
lostmygithubaccount opened this issue Feb 26, 2024 · 0 comments · Fixed by #8860
Closed
1 task done

feat: support empty URL for local backends in ibis.connect() #8450

lostmygithubaccount opened this issue Feb 26, 2024 · 0 comments · Fixed by #8860
Assignees
Labels
feature Features or general enhancements onboarding Issues that can be addressed by someone less familiar with ibis ux User experience related issues

Comments

@lostmygithubaccount
Copy link
Member

Is your feature request related to a problem?

often when testing against multiple backends, myself or a user will do something like:

backend = "polars"

if backend == "polars":
    con = ibis.polars.connect()
...

Ibis supports a cleaner ibis.connect() that takes a backend-specific URI. those don't make sense for many of the local backends and are currently NotImplemented, but it would be nice for consistency and ease of use to support empty URIs for all of:

  • pandas
  • polars
  • dask
  • datafusion

and any others not supported now. should also support #8435 and #7710 once those are in (and any other future local backends)

Describe the solution you'd like

backend = "polars" # "duckdb" "pandas" "datafusion" "dask"

import ibis

con = ibis.connect(f"{backend}://")

adding anything to the URIs could warn or error

What version of ibis are you running?

main

What backend(s) are you using, if any?

duckdb/pandas/datafusion/polars/dask/pyspark

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lostmygithubaccount lostmygithubaccount added feature Features or general enhancements onboarding Issues that can be addressed by someone less familiar with ibis labels Feb 26, 2024
@jcrist jcrist added the ux User experience related issues label Feb 26, 2024
@jitingxu1 jitingxu1 self-assigned this Mar 7, 2024
@jitingxu1 jitingxu1 moved this from backlog to todo in Ibis planning and roadmap Mar 7, 2024
@jitingxu1 jitingxu1 moved this from todo to review in Ibis planning and roadmap Apr 2, 2024
gforsyth pushed a commit that referenced this issue Apr 2, 2024
…with empty url (#8860)

support empty URL for local backends in ibis.connect()

## Issues closed
* Resolves #8450
@github-project-automation github-project-automation bot moved this from review to done in Ibis planning and roadmap Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements onboarding Issues that can be addressed by someone less familiar with ibis ux User experience related issues
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants