You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/01/12 15:58:45 UTC

[GitHub] [iceberg] RussellSpitzer edited a comment on issue #2068: Procedure for adding files to a Table

RussellSpitzer edited a comment on issue #2068:
URL: https://github.com/apache/iceberg/issues/2068#issuecomment-758704781


   I was thinking something like
   
   **add_files**.(**table** => "db.sample", **directory** => "/some/dir/files/", **format** => "parquet")
   
   **Table** = "The iceberg table we are adding files to"
   **Directory** = "The source directory where the files are located"
   **Format** = "The reader used with these files (parquet, orc, avro ...)
   
   I believe the output should be something like
   
   | Partition | Files Added |
   | --------------  | ------------|
   | "Foo", "1"          | 5                 |
   | "Foo", "2"         |  6               |
   
   This command would basically go through all of the files under the provided directory, and add them all directly to the table. The files would not be read of scanned so it would be up to the user to only add files with correct columns or to adjust the table column mapping to match. 
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org