Skip to content

Scuffed error message when importing parquet with pl.read_csv (by accident) #16106

@Chuck321123

Description

@Chuck321123

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

Import a parquet file with pl.read_csv instead

Log output

No response

Issue description

So I made a couple of changes in my code and ran it. The console history suddenly got deleted and all i got was this:
Error message
No lines where the error occured or anything + the error deleted my whole console history. Luckily i found my own mistake by importing a parquet file with pl.read_csv. However, would be preferable to get a normal error message where you see which line there is something wrong with

Expected behavior

That i get a normal error message + console history doesnt get deleted

Installed versions

Details
--------Version info---------
Polars:               0.20.22
Index type:           UInt32
Platform:             Windows-11-10.0.22631-SP0
Python:               3.12.2 | packaged by Anaconda, Inc. | (main, Feb 27 2024, 17:28:07) [MSC v.1916 64 bit (AMD64)]

----Optional dependencies----
adbc_driver_manager:  <not installed>
cloudpickle:          3.0.0
connectorx:           <not installed>
deltalake:            <not installed>
fastexcel:            <not installed>
fsspec:               <not installed>
gevent:               <not installed>
hvplot:               <not installed>
matplotlib:           3.8.3
nest_asyncio:         1.6.0
numpy:                1.26.4
openpyxl:             3.1.2
pandas:               2.2.1
pyarrow:              15.0.2
pydantic:             <not installed>
pyiceberg:            <not installed>
pyxlsb:               <not installed>
sqlalchemy:           <not installed>
xlsx2csv:             <not installed>
xlsxwriter:           <not installed>

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-lowPriority: lowbugSomething isn't workinggood first issueGood for newcomerspythonRelated to Python Polars

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions