romainfrancois commented on pull request #7524: URL: https://github.com/apache/arrow/pull/7524#issuecomment-648848097
Added support for record batches. Toying with the idea of a print method for the metadata, to make it less opaque: ``` r library(arrow) #> #> Attaching package: 'arrow' #> The following object is masked from 'package:utils': #> #> timestamp Table$create(a = structure(1:2, foo = "bar"))$metadata #> $r #> [1] "A\n3\n262144\n197888\n5\nUTF-8\n531\n2\n254\n531\n1\n531\n1\n16\n1\n262153\n3\nbar\n1026\n1\n262153\n5\nnames\n16\n1\n262153\n3\nfoo\n254\n1026\n511\n16\n1\n262153\n1\na\n254\n1026\n511\n16\n2\n262153\n4\ndata\n262153\n7\ncolumns\n254\n" #> List of 2 #> $ data : NULL #> $ columns:List of 1 #> ..$ a:List of 1 #> .. ..$ foo: chr "bar" #> #> attr(,"class") #> [1] "arrow:::metadata" record_batch(a = structure(1:2, foo = "bar"))$metadata #> $r #> [1] "A\n3\n262144\n197888\n5\nUTF-8\n531\n2\n254\n531\n1\n531\n1\n16\n1\n262153\n3\nbar\n1026\n1\n262153\n5\nnames\n16\n1\n262153\n3\nfoo\n254\n1026\n511\n16\n1\n262153\n1\na\n254\n1026\n511\n16\n2\n262153\n4\ndata\n262153\n7\ncolumns\n254\n" #> List of 2 #> $ data : NULL #> $ columns:List of 1 #> ..$ a:List of 1 #> .. ..$ foo: chr "bar" #> #> attr(,"class") #> [1] "arrow:::metadata" ``` <sup>Created on 2020-06-24 by the [reprex package](https://reprex.tidyverse.org) (v0.3.0.9001)</sup> ---------------------------------------------------------------- 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: [email protected]
