I am using Snowpipe with Auto Ingest True . I have followed all the steps, but When I upload files in S3 , it does not load into Snowflake. I checked status with below query:
select system$pipe_status('DB.PUBLIC.mypipe');
{"executionState":"STOPPED_MISSING_TABLE","pendingFileCount":0,"notificationChannelName":"arn:aws:sqs:region:xxxx:xxxx","numOutstandingMessagesOnChannel":0,"lastReceivedMessageTimestamp":"2021-03-29T13:00:07.443Z","lastForwardedMessageTimestamp":"2021-03-29T13:00:07.443Z"}
It looks like it is not able to find the target table, but table exists and current user has access to table. When I run just the underlying Copy, it works fine and files are loaded.
Can someone suggest what can be issue.
create or replace pipe DB.public.mypipe auto_ingest=true as
copy into DB.public.table
from @DB.public.table
file_format = (type = 'CSV' error_on_column_count_mismatch=false) ON_ERROR="CONTINUE";