Skip to content

Post upgrade to 25.01, existing python code doesn't work anymore #7293

@productatvitrina

Description

@productatvitrina

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)

    # Check if we have results
    if not results or 'rows' not in results:
        return {
            "rows": [],
            "columns": [],
            "error": "No results found"
        }

    # Just return the rows as they are
    return {
        "rows": results['rows'],
        "columns": [
            {"name": col, "type": "string"} 
            for col in results['rows'][0].keys()
        ] if results['rows'] else []
    }

except Exception as e:
    return {
        "rows": [],
        "columns": [],
        "error": str(e)
    }

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions