Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

CSV import issues (hashtag2720) #49

Open vikramsubramanian opened 7 months ago

vikramsubramanian commented 7 months ago

Hello, I am trying to run the Python Colab examples (which use kuzu version 0.0.7) on my machine (which uses kuzu 0.1.0), and I have encountered problems when importing the CSV files, i.e. when running conn.execute('COPY tableName FROM "./fileName.csv" (HEADER=true)') Specifically, the problems arise in two examples: the node property prediction example ([link]( and the link prediction example ([link](

Both times the errors are due to some characters in the csv files:

This is what I tried and learned:

I hope this can be helpful, and we can find a solution. )

mayil-ai[bot] commented 7 months ago

Summary: Issues with importing CSV files in kuzu version 0.1.0 causing errors due to special characters, which are resolved by downgrading to earlier versions.

Possible Solution

Based on the provided information, the issue seems to be related to CSV import functionality and database query execution in different versions of Kùzu. The error occurs when importing CSV files with special characters and executing a particular MATCH query in version 0.0.9. Here is a solution to address the issue:

Note: The provided code snippets from various language APIs and documentation files do not directly address the issue at hand, so they are not included in the solution.

Code snippets to check