Querying Data in Staged Files
Snowflake supports using standard SQL to query data files located in an internal (i.e. Snowflake) stage or named external (Amazon S3, Google Cloud Storage, or Microsoft Azure) stage. This can be useful for inspecting/viewing the contents of the staged files, particularly before loading or after unloading data.
https://docs.snowflake.com/en/user-guide/querying-stage
False: You cannot directly query the files in an External Stage without having to load the data into a table in Snowflake.
Here's why:
External stages act as pointers to data residing in external cloud storage locations like S3 or Azure Blob Storage. Snowflake doesn't have direct access to the data format or schema within those files.
To query the data, you need to first load it into a Snowflake table using the COPY INTO command. This process reads the data from the external stage, parses it based on the specified format definition, and populates the target table within Snowflake.
Once the data is loaded into a Snowflake table, you can then use standard SQL queries to access and analyze it.
In essence, external stages serve as a staging area for data before it's brought into Snowflake for processing and querying.
Snowflake supports using standard SQL to query data files located in an internal (i.e. Snowflake) stage or named external (Amazon S3, Google Cloud Storage, or Microsoft Azure) stage. This can be useful for inspecting/viewing the contents of the staged files, particularly before loading or after unloading data.
Correct answer
External tables are read-only, therefore no DML operations can be performed on them; however, external tables can be used for query and join operations. Views can be created against external tables.
Yeah, but that wasn't the question... this one is about whether you can query files on an external stage directly
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
PrasantSadangi
4 days, 14 hours agoAlex_Ovidiu
5 months, 3 weeks agoBujji1234
8 months agooscarglob
10 months, 2 weeks agoMultiCloudIronMan
1 year, 2 months agoMayuri917233
1 year, 4 months agoTapasgup007
1 year, 9 months agokjdfsafc87456
2 years, 1 month agooscarglob
10 months, 2 weeks agolhstudylh
2 years, 7 months agooscarglob
10 months, 2 weeks ago