-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Post upgrade to 25.01, existing python code doesn't work anymore #7293
Comments
@productatvitrina how were you executing this Python code with Redash 8.x? |
@eradman something like below: Fetch the query resultsquery_id = 58 Initialize data structuresprocessed_data = [] if 'rows' in results: Prepare the result object for Redashresult = { Return the result for Redashreturn result |
Oh! This is a data source, which is disabled by default does the simple example on this page work? |
Yes, I have manually added Python as data source in my env file. Running python queries as well. The problem has arisen after the upgrade. |
I recently upgraded from 8.0.0.b32245 to 25.0.1 version.
However, all of my python code have stopped working.
For example, a simple code like below which reads output from another query and shows them as is, is running but not showing anything as output.
def query(query_id=58):
try:
# Fetch the query results
results = get_query_result(query_id)
There are around 22 records in my query_id 58.
Below is another example of my code which used to work smoothly when I had Redash 8.x version:
The text was updated successfully, but these errors were encountered: