nerdexam
Snowflake

ARA-C01 · Question #19

An Architect runs the following SQL query: How can this query be interpreted?

The correct answer is A. FILEROWS is a stage. FILE_ROW_NUMBER is line number in file.. In Snowflake, when querying data from an external or internal stage, FILEROWS refers to a stage alias (the source of the files being read). FILE_ROW_NUMBER is a Snowflake metadata column (accessed via METADATA$FILE_ROW_NUMBER) that returns the sequential line number of each recor

Data Engineering

Question

An Architect runs the following SQL query:

How can this query be interpreted?

Exhibit

ARA-C01 question #19 exhibit

Options

  • AFILEROWS is a stage. FILE_ROW_NUMBER is line number in file.
  • BFILEROWS is the table. FILE_ROW_NUMBER is the line number in the table.
  • CFILEROWS is a file. FILE_ROW_NUMBER is the file format location.
  • DFILERONS is the file format location. FILE_ROW_NUMBER is a stage.

How the community answered

(52 responses)
  • A
    90% (47)
  • B
    6% (3)
  • C
    2% (1)
  • D
    2% (1)

Explanation

In Snowflake, when querying data from an external or internal stage, FILEROWS refers to a stage alias (the source of the files being read). FILE_ROW_NUMBER is a Snowflake metadata column (accessed via METADATA$FILE_ROW_NUMBER) that returns the sequential line number of each record within its source file - not the row number in a table. This metadata is useful for debugging data load issues, identifying which specific line in a source file caused an error, and validating file parsing. Option B is incorrect because FILEROWS is not a table. Option C is incorrect because FILE_ROW_NUMBER is not a file format location. Option D is incorrectly swapping the definitions of both identifiers.

Topics

#Stages#Data Loading#File Metadata#Data Ingestion

Community Discussion

No community discussion yet for this question.

Full ARA-C01 Practice