jay
10/23/2024, 3:39 AMRaunak Bhagat
10/23/2024, 3:41 AMArrowCapacityError.
The pa.Table 's schema has large_string everywhere in it. No signs of regular strings. So I'm assuming everything is i64 encoded already. Not sure why we're hitting the capacity error of 2gb.Raunak Bhagat
10/23/2024, 3:42 AM(Pdb) schema
repo: large_string
file: large_string
code: large_string
file_length: int64
avg_line_length: double
max_line_length: int64
extension_type: large_stringjay
10/23/2024, 3:42 AMRaunak Bhagat
10/23/2024, 3:43 AMjay
10/23/2024, 3:43 AMRaunak Bhagat
10/23/2024, 3:53 AMParquet string encoding (first is length, second is the data):
[len_1, string_1]
...
[len_n, string_n]
E.g.:
[5, "Hello"]
[6, "world!"]
Arrow string encoding:
[string_1...string_n]
[len_1, len_1 + len_2, ..., (len_1 + ... + len_n)]
So even if len_i <= (2^31 - 1) for i := 1,...,n , maybe PyArrow throws an error if len_1 + ... + len_n >= (2^32 - 1) ?Raunak Bhagat
10/23/2024, 3:53 AMDesmond Cheong
10/23/2024, 7:46 AMDesmond Cheong
10/23/2024, 7:47 AMAndrew Gazelka
10/23/2024, 12:42 PM