Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
337 views
in Technique[技术] by (71.8m points)

Snowflake Copy_history ROW_COUNT while file is still being loaded

When does COPY_HISTORY view's ROW_COUNT column get updated for a file load via snowpipe? I came across a scenario where I received an alert from a monitoring service we setup to poll the view and validate ROW_COUNT value against the actual number of rows in a file (loaded from snowpipe). But when I looked at this view after the alert, I see the counts actually match. Our monitoring service's logs show a mismatch in the counts when this alert was thrown though. Interesting thing is the log was logged 3 seconds BEFORE the LAST_LOAD_TIME in the COPY_HISTORY view. As per documentation this value is the time when the snowpipe finishes loading the file.

My question is does ROW_COUNT column value get update while the file load is in progress?

question from:https://stackoverflow.com/questions/65943042/snowflake-copy-history-row-count-while-file-is-still-being-loaded

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...