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.

How to configure a datasource Extra parameter?

See original GitHub issue

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Superset version

0.999.0dev more ./superset/assets/package.json``installed by docker

Expected results

image press save button, engine param can be configered correctly

Actual results

Invalid argument(s) ‘pool_size’,‘max_overflow’ sent to create_engine(), using configuration PGDialect_psycopg2/NullPool/Engine. Please check that the keyword arguments are appropriate for this combination of components.

Steps to reproduce

  1. go to Edit Database Page
  2. config Extra section
  3. save button

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
lhyundeadsoulcommented, Feb 25, 2019

Please try wrap arguments by “connect_args”

"engine_params": {"connect_args": {"pool_size": 10: "max_overflow": 20}}

reference from https://docs.sqlalchemy.org/en/latest/core/engines.html?highlight=create_engine#sqlalchemy.create_engine

Thanks for help!

But i got a following error

(psycopg2.ProgrammingError) invalid dsn: invalid connection option “pool_size” (Background on this error at: http://sqlalche.me/e/f405)

I have checked the doc out, and i supposed that the “pool_size” and “connect_args” might be in one level ,rather than “pool_size” is underlying the “connect_args”

image image

thank you any way @zhaoyongjie

1reaction
zhaoyongjiecommented, Feb 25, 2019

Please try wrap arguments by “connect_args”

"engine_params": {"connect_args": {"pool_size": 10: "max_overflow": 20}}

reference from https://docs.sqlalchemy.org/en/latest/core/engines.html?highlight=create_engine#sqlalchemy.create_engine

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure a datasource Extra parameter? #6930 - GitHub
Please check that the keyword arguments are appropriate for this combination ... go to Edit Database Page; config Extra section; save button.
Read more >
Pass additional parameters to Read ajax datasource method
Hi, I want to pass an additional parameter to my Read ajax method from Grid along with currently passing the controller name and...
Read more >
Datasource Configuration Parameters - WSO2 Documentation
You can configure the datasource connection pool parameters, such as how long a connection is persisted in the pool, using the datasource ......
Read more >
Persist additional dataSource.read parameters on paganation ...
To persist the updated value of the additional parameter through pagination, you will need to create a global variable and save the value...
Read more >
Adding configuration parameters to SQL data sources - IBM
Click the Data Source Configuration Parameters tab to define configuration parameters. Define a configuration parameter. Click Add or New. Define the ...
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