Skip to content
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

fix: skip empty query cells when run datadoc #1217

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

jczhong84
Copy link
Collaborator

scheduled datadoc will fail when there is a empty query cell in the doc. Here we skip empty cells.

raw_query = query_cell.context

# Skip empty cells
if not raw_query or raw_query.isspace():
Copy link
Collaborator

Choose a reason for hiding this comment

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

is context nullable? why not if len(raw_query.strip()) == 0

@czgu czgu merged commit c508f2b into pinterest:master Apr 7, 2023
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Apr 11, 2023
@jczhong84 jczhong84 deleted the fix/rundoc branch April 18, 2023 17:28
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
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