Skip to content

Handle cases with cur.description is None#130

Merged
tung-vu-td merged 2 commits intomasterfrom
hotfix/none-description
Mar 28, 2024
Merged

Handle cases with cur.description is None#130
tung-vu-td merged 2 commits intomasterfrom
hotfix/none-description

Conversation

@Matts966
Copy link
Copy Markdown
Contributor

Problem

Since this change of Trino, cur.description is None for DROP and CREATE statements.
This causes 'NoneType' object is not iterable in the pytd side.

This PR adds handling of cases with cur.description is None.

Alternatives and Why Not?

We can return None instead of an empty list but an empty list keeps the same typing

@kietdo360 kietdo360 requested a review from tung-vu-td March 27, 2024 03:46
@Matts966 Matts966 requested a review from tung-vu-td March 27, 2024 08:48
Copy link
Copy Markdown
Contributor

@tung-vu-td tung-vu-td left a comment

Choose a reason for hiding this comment

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

LGTM

@tung-vu-td tung-vu-td merged commit 708e8c5 into master Mar 28, 2024
@tung-vu-td tung-vu-td deleted the hotfix/none-description branch March 28, 2024 08:58
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.

2 participants