When two robotics log extracts are combined for review, a suspicious row is easier to investigate if the exported result identifies its source file. The row's position in a query result can change when someone filters or sorts the data. DuckDB can expose the file name and the row's position within that file. A review extract can keep those fields beside the domain identifier so the analyst can both locate the physical record and understand what it represents.
Use the DuckDB Parquet reader with the file_row_number option enabled, then project both filename and file_row_number. In the DuckDB 2.0 documentation, filename is a virtual column available by default. The optional row number refers to the source file. Keep the file name beside the position because positions from different files can repeat. For this exercise, use a directory containing only agreed test files and select only fields you are permitted to share. DuckDB 2.0 Parquet reader reference
The example assumes two teaching files with the same columns. Create or obtain them in a separate exercise folder before running the query. Use distinctive record identifiers within the examples so a match can be checked by reading back the source row. The query lists matching rows from the two files and names the locator columns in the output. It does not modify either input file.
For a repeatable exercise, put both a review event and a routine event into each input. Use a distinct record identifier for every event. Leave one routine event ahead of a review event in at least one file. When the query filters the routine event away, the source row still describes the review event's position in the original input. Save the input files together with the query so a second learner can perform the same readback without relying on a screenshot.
SELECT record_id, event_kind,
filename AS source_file,
file_row_number AS source_row
FROM read_parquet(
['demo_shift_a.parquet', 'demo_shift_b.parquet'],
file_row_number = true
)
WHERE event_kind = 'review'
ORDER BY source_file, source_row;

Take one row from the review output. Read only the named source file with the same option enabled, then filter on the saved file-relative position. Compare the resulting record identifier and the values used in the original review. Save the source snapshot identifier with the result. A rewritten file with the same name can have different row positions. If the original input is no longer available, record that gap before treating the locator as a reproducible reference.
A pipeline may instead need to refer to the original event or asset across refreshed datasets. For that purpose, retain the domain identifier and the definition of the field that contains it. A file locator answers where you saw the row in a particular export. For a related example of why the stored value and its representation need separate checks, read the Arrow run-end encoding article.
Repeat the review query with the result sorted by record identifier instead of source row. A row can move in the displayed table while its source locator remains the same. Write the two locators side by side in the exercise notes and compare the record identifiers as a second check. This demonstrates why a number supplied by a table viewer should be kept out of the source reference.
DuckDB also documents file_index, the index of a file in the order read for a multi-file input. It describes the file within that read and has a different meaning from file_row_number. If a test changes the input file list, preserve the filename rather than assuming the same index represents the same file. If a reviewed extract only has a row number assigned after sorting, ask for the original source locator before attempting a readback. DuckDB 2.0 importing data reference

When selecting rows from nested records, keep the original projection available. The Parquet nested column article discusses how a nested value is represented. Flattening one record into several output rows can repeat its file locator. If the output must distinguish those rows, retain the relevant member identifier in addition to the locator. That preserves the distinction between the source record and what the query produced from it.
Write down the exact input set, query, DuckDB version, snapshot reference and meaning of each output column. Have a second reviewer retrieve a chosen source row before accepting the extract as traceable. If the inputs are re-exported or reordered, generate fresh locators against the new snapshot. The industry analysis section provides related data handling methods, and the industry news archive can help follow tool changes. A review is repeatable when another person can locate the same file and record under the recorded conditions.