Skip to content

PanicException: index out of bounds: the len is 0 but the index is 0 #1207

Description

@djouallah

getting a panic,

Query18
---------------------------------------------------------------------------
PanicException                            Traceback (most recent call last)
[/tmp/ipython-input-3560973170.py](https://localhost:8080/#) in <cell line: 0>()
      3 for tbl in tbl_list :
      4   ctx.register_table_provider(tbl,  DeltaTable(f'{Table_Path}/CH{SF}/{tbl}'))
----> 5 df = execute_query(ctx,sql)
      6 save_results(df,'datafusion')

1 frames
[/usr/local/lib/python3.12/dist-packages/datafusion/dataframe.py](https://localhost:8080/#) in show(self, num)
    624             num: Number of lines to show.
    625         """
--> 626         self.df.show(num)
    627 
    628     def distinct(self) -> DataFrame:

PanicException: index out of bounds: the len is 0 but the index is 0

full code : https://colab.research.google.com/drive/1okNM6aOEdZSZy7XNHfxvUmdf57Z6BvEu?usp=sharing

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions