Skip to content

Conversation

@ivpusic
Copy link
Member

@ivpusic ivpusic commented Nov 10, 2025

  • Removed list_tables deprecated endpoint from the SDK
  • Consume error field from the get_execution_status to provide better error messages

Note

Removes deprecated table listing API/models and updates execution failure handling to raise QueryFailedError with status.error.message (sync and async).

  • Errors/Executions:
    • Use status.error.message when raising QueryFailedError on failures in ExtendedAPI.run_sql, ExtendedAPI._refresh, and AsyncDuneClient._refresh; fallback to a generic message.
  • Tables API:
    • Remove TableAPI.list_tables and related models TableInfo and ListTablesResponse.
  • Tests:
    • Update tests to assert specific failure messages and remove tests for the deleted list-tables functionality.

Written by Cursor Bugbot for commit 9116c33. Configure here.

Copy link
Contributor

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice thanks!

await client._refresh(query)

assert "Error data:" in str(exc_info.value)
assert "Query syntax error" in str(exc_info.value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect there may be a few more error assertions that will need to be modified.

@ivpusic ivpusic merged commit 2f77665 into main Nov 10, 2025
2 checks passed
@ivpusic ivpusic deleted the consume_status branch November 10, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants