Open pawan-chauhan-9560 opened 1 week ago
Hi, without a file, I cannot test. Can you produce a sample file that is erroring for you, and share it? So I can reproduce the error. You can email it to support@slingdata.io if you prefer.
We have shared a sample dataset with [support@slingdata.io]. Please check it.
Issue Description
privateIp :- FE_Url
Description of the Issue:
We created a Parquet/CSV file from SQL Server. While inserting the data into Starrocks, we are encountering an error.
SQL table structure id | productid | productName| 1 | 42 | Cookie | 2 | 43 | Ice cream, Frozen Desert|
CSV file structure: 1,42,Cookie 2,43,"Ice cream, Frozen Desert"
Sling version 1.2.11
Operating System linux
Replication Configuration:
Command Which i using to insert data into the starrocks `#!/bin/bash
Define the log file path
LOGFILE="/opt/sling/slingDataTranfserlog_19_06_24.log"
Iterate over each .csv file in the directory
for file in /opt/sling/csvnew/part.01.0460.csv; do echo "Uploading $file..." >> $LOGFILE 2>&1
Use curl to upload the file and capture the response
response=$(curl --location-trusted -u 'user:password' \ -H "Expect: 100-continue" \ -H "column_separator: ," \ -H "columns: id,product,productName" \ -H "skip_header: 1" \ -T "$file" \ -X PUT \ http://privateIP:8030/api/DatabaseName/TableName/_stream_load 2>&1)
Log the response
echo "$response" >> $LOGFILE 2>&1 done`
streams: Stream
-d
):