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

add nil check for string pointers during dolt table import #4284

Merged
merged 3 commits into from
Sep 8, 2022
Merged

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Sep 7, 2022

Closes: #4209

@jycor jycor requested a review from fulghum September 7, 2022 20:16
Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for fixing another panic! 🙏

[ "$status" -eq 1 ]
[[ "$output" =~ "A bad row was encountered while moving data" ]] || false
[[ "$output" =~ "CSV reader expected 3 values, but saw 4" ]] || false
[[ "$output" =~ "row values:" ]]
Copy link
Contributor

@fulghum fulghum Sep 7, 2022

Choose a reason for hiding this comment

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

do you need the || false at the end of this line 1240, too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for catch, I definitely do

Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

As a bit of trivia. This is only necessary because of the ancient version of bash that ships with MacOS. Without it, that equality may show true when false non-deterministically.

Copy link
Contributor

Choose a reason for hiding this comment

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

🦇 🦇 🦇 @timsehn == BATSman 🦇 🦇 🦇

@zachmu zachmu merged commit 1c5cab3 into main Sep 8, 2022
@Hydrocharged Hydrocharged deleted the james/import branch October 13, 2022 12:46
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.

panic on import
4 participants