question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace backend options by something else

See original GitHub issue

xref #2593 xref https://github.com/ibis-project/ibis/pull/2379#issuecomment-785510513

At the moment, this is valid Ibis valid code:

import ibis

ibis.options.impala.temp_db = 'foo'

client = ibis.impala.connect(...)

Ideally, we would like load a backend only if it’s used (on ibis.impala.connect). But the code ibis.options.impala.temp_db = 'foo' would fail if the backend has not yet been loaded. So, we are currently loading all backends on startup (skipping the ones raising ImportError).

Personally, I think what makes more sense is that backends can’t implement global options, but they use connection parameters. With a unified connect function (see #2532), it could look like this (it could also be implemented if we don’t unify connect):

conn = ibis.connect('impala://user@impala/ibis_testing',
                    temp_db='foo')

There are probably other options, like making options load backends, adding a .set_option to the client… But I think the one above is clearer.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
datapythonistacommented, Apr 22, 2021

Do you think I should move forward with removing the option in ibis-project/ibis-bigquery#37?

Personally, I think the best for users would be using ibis.connect(connection_string) (see #2532). Not sure if when you mean ibis_bigquery.connect you mean Backend.connect. But yes, I think it’s a good idea to make partition_col a connect parameter instead of an ibis option.

0reactions
cpcloudcommented, Dec 29, 2021

It would be great to see what this would look like in a PR, but we can’t keep the issue open forever.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backend Configuration - Terraform - HashiCorp Developer
Changing Configuration​​ You can change your backend configuration at any time. You can change both the configuration itself as well as the type...
Read more >
Top 10 backend frameworks | Which is the best option for you?
Backend frameworks are quintessential to application development for countless businesses across the world today. Finding the right backend framework can be ...
Read more >
How to change backends in matplotlib / Python - Stack Overflow
So my question is does someone have a code snippet that shows how to switch the backend in Matplotlib? Thanks so much! UPDATE:...
Read more >
Replace pfdhcp backend for options #3484 - GitHub
Description. Moved from etcd to mysql the pfdhcp backend to store the options. ; Impacts. DHCP ; Delete branch after merge. YES ;...
Read more >
.NET In The Back-End - What's The Best Option For The Front ...
For many years now, .NET development has been the backend web development framework of choice. But what about the front end? Learn more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found