Open vikramsubramanian opened 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.
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:
paper.csv
and movies.csv
are properly formatted and encoded in UTF-8 to avoid issues with special characters.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.
tools/python_api/test/conftest.py
This file contains code for initializing and loading CSV data into the database, which is directly related to the CSV import issue described.
tools/python_api/src_py/init.py
This file contains example usage of the Python API for Kuzu, including CSV data loading, which may need to be reviewed for compatibility with different versions of Kuzu.
tools/python_api/test/test_query_result_close.py
This file includes a test case that loads CSV data into the database, which could be relevant for understanding the CSV import issue.
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:
conn.execute("MATCH (a:paper) WHERE a.id = $pid SET a.category = $pred", [("pid", paper_id), ("pred", prediction)])
I hope this can be helpful, and we can find a solution. )