Skip to content

fixed an error with the column name "0".#27

Open
eisberg wants to merge 1 commit intocodename-hub:masterfrom
ModelTech:feature/fix_o_keypath
Open

fixed an error with the column name "0".#27
eisberg wants to merge 1 commit intocodename-hub:masterfrom
ModelTech:feature/fix_o_keypath

Conversation

@eisberg
Copy link
Contributor

@eisberg eisberg commented Apr 11, 2025

When reading a file with indexed column names: 0, 1, 2, ...

Get error:

In ParquetRowGroupReader.php line 100:
                                  
  '' does not exist in this file  

The error occurs because when defining the path, the array_filter function throws the normal value "0" equating it to NULL.

array_filter function without callback:

$entry = [
    0 => 'foo',
    1 => false,
    2 => -1,
    3 => null,
    4 => '',
    5 => '0',
    6 => 0,
];

print_r(array_filter($entry));

The above example will output:

Array
(
    [0] => foo
    [2] => -1
)

When reading a file with indexed column names: 0, 1, 2, ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant