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

Snowflake: Number of Rows Inserted #407

Open
jim256 opened this issue Apr 10, 2020 · 5 comments
Open

Snowflake: Number of Rows Inserted #407

jim256 opened this issue Apr 10, 2020 · 5 comments

Comments

@jim256
Copy link

jim256 commented Apr 10, 2020

I just ran the following query:

INSERT INTO [DATABASE].[SCHEMA].[TABLE]

	SELECT
		*
	FROM
		[DATABASE].[SCHEMA].[OTHER_TABLE]
;

I had truncated the table immediately before, and verified it was empty with a SELECT * on it.

The target table had 0 rows before the insert and 2270614 after it, but the results pane showed 0 were inserted:
image

Not sure if this is an issue on Snowflake's end or not.

I would upload or email the log, but it has been a while since I've cleared it out (so it's extremely long and I'm not sure where I can cut things off to still include what's needed) and there are a lot of company IP addresses, table names, database names, etc. in there and I'm afraid I might miss one.

@hankinsoft
Copy link
Owner

Fixed for the next build.

@hankinsoft
Copy link
Owner

Latest build (2020.38) is available which should sort this out. Please let me know if you get a chance.

@jim256
Copy link
Author

jim256 commented May 5, 2020

@hankinsoft, it's been reporting the correct number of rows. A very solid update, indeed. Thanks!

@jim256 jim256 closed this as completed May 5, 2020
@jim256
Copy link
Author

jim256 commented May 6, 2020

@hankinsoft, I figured you'd prefer I re-open this one over creating a new issue.

This issue seems to be present when doing updates. If I run an UPDATE statement that modifies thousands of records, SQLPro Studio returns:

image

@jim256 jim256 reopened this May 6, 2020
@hankinsoft
Copy link
Owner

I've submitted to a bug report to libsnowflakeclient about this: #216.

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

No branches or pull requests

2 participants