[ https://issues.apache.org/jira/browse/ARROW-15260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470565#comment-17470565 ]
Nicola Crane commented on ARROW-15260: -------------------------------------- Hi [~martindut] - I think this is C++ functionality which is not exposed directly in the R layer and that this wouldn't be possible. I will open a ticket for enabling the functionality that Weston mentions for extracting filenames though. > [R] open_dataset - add file_name as column > ------------------------------------------ > > Key: ARROW-15260 > URL: https://issues.apache.org/jira/browse/ARROW-15260 > Project: Apache Arrow > Issue Type: New Feature > Components: R > Reporter: Martin du Toit > Priority: Minor > > Hi. Is it possible to add the file_name as a column to a dataset? > {code:r} > ds <- open_dataset(.....) > list_of_files <- ds$files > {code} > This works, but I need the file_name as a column. > Thanks > -- This message was sent by Atlassian Jira (v8.20.1#820001)