You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
INFILE CSV insert hangs, and times out.
Running a Clickhouse in the docker container, I have copied the CSV file into the docker container, and running a Python script from the host computer that does an INFILE CSV insert.
I have verified that connection works (I can run other queries, and get results).
Insert query just hangs.
To Reproduce
defload_to_clickhouse(csv_filename, table_name='public.trades'):
print("Loading into ClickHouse...")
client=Client(
host='localhost',
port=CLICKHOUSE_PORT,
user='default',
)
# Load data using local file methodquery=f""" INSERT INTO {table_name} FROM INFILE '{csv_filename}'; """print(query)
try:
print(client.execute(query))
print(f"Successfully loaded rows into ClickHouse")
exceptExceptionase:
print(f"Error loading data: {e}")
finally:
client.disconnect()
Expected behavior
CSV is imported via INFILE.
Versions
python3 --version
Python 3.13.1
SELECT version()
┌─version()──┐
│ 24.10.2.80 │
└────────────┘
The text was updated successfully, but these errors were encountered:
Describe the bug
INFILE CSV insert hangs, and times out.
Running a Clickhouse in the docker container, I have copied the CSV file into the docker container, and running a Python script from the host computer that does an INFILE CSV insert.
I have verified that connection works (I can run other queries, and get results).
Insert query just hangs.
To Reproduce
Expected behavior
CSV is imported via INFILE.
Versions
python3 --version
Python 3.13.1
SELECT version()
┌─version()──┐
└────────────┘
The text was updated successfully, but these errors were encountered: