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
# flink insert sqlinsert into product
select*from product_cdc_table ;
When we write data to dorsi by flink streaming, have following error occurs.
doris version: 0.14
flink-doris-connector version : master
flink version : 1.12.2
When we repalce column_separator=%x01 and line_delimiter=%x02, have other error occurs :
Reason: actual column number is more than schema column number. actual number: 1900 sep: %, schema number: 19;. src line: [689%x018a7c7089faaf00c850b90154e74fb821%x01101787%x0111%x010%x010%x010%x01%x01%x01QARFEE
We check barch-0.14 and master, look the commit message [Load] Support multi bytes LineDelimiter and ColumnSeparator (#5462) in broker_scanner.cpp, so we are going to verify it.
Specify the newline character to set the
sink.properties.line_delimiter parameters
我这里试了还是不行,最近一忙就没顾上 @mincwang
@yangmingjie your param line_delimiter(%%%%) and column_separator(%%%%) has the same prefix value, may cause doris to be indistinguishable,modify them to a different prefix and it works
# flink insert sqlinsert into product
select*from product_cdc_table ;
When we write data to dorsi by flink streaming, have following error occurs.
doris version: 0.14
flink-doris-connector version : master
flink version : 1.12.2
When we repalce column_separator=%x01 and line_delimiter=%x02, have other error occurs :
Reason: actual column number is more than schema column number. actual number: 1900 sep: %, schema number: 19;. src line: [689%x018a7c7089faaf00c850b90154e74fb821%x01101787%x0111%x010%x010%x010%x01%x01%x01QARFEE
We check barch-0.14 and master, look the commit message [Load] Support multi bytes LineDelimiter and ColumnSeparator (#5462) in broker_scanner.cpp, so we are going to verify it.
@JNSimba Can this PR fix the above problems? please help to confirm.
@mincwang it is work to change to other characters,hexadecimal may be has problem
What do you recommend set for column_separator and line_delimiter ?
It can be set as a character that does not appear frequently according to the specific business, or it can be set as a combination of multiple characters
@mincwang it is work to change to other characters,hexadecimal may be has problem
What do you recommend set for column_separator and line_delimiter ?
It can be set as a character that does not appear frequently according to the specific business, or it can be set as a combination of multiple characters
But we doris version is 0.14,only master version support of multiple characters ,fix above problem by this PR #5462.
@mincwang it is work to change to other characters,hexadecimal may be has problem
What do you recommend set for column_separator and line_delimiter ?
It can be set as a character that does not appear frequently according to the specific business, or it can be set as a combination of multiple characters
But we doris version is 0.14,only master version support of multiple characters ,fix above problem by this PR #5462.
Sorry, I may not make it clear, I mean it can be specified as multiple letters, like column_separator=doris
Specify the newline character to set the
sink.properties.line_delimiter parameters
我这里试了还是不行,最近一忙就没顾上 @mincwang
@yangmingjie your param line_delimiter(%%%%) and column_separator(%%%%) has the same prefix value, may cause doris to be indistinguishable,modify them to a different prefix and it works
Specify the newline character to set the
sink.properties.line_delimiter parameters
我这里试了还是不行,最近一忙就没顾上 @mincwang
@yangmingjie your param line_delimiter(%%%%) and column_separator(%%%%) has the same prefix value, may cause doris to be indistinguishable,modify them to a different prefix and it works
Specify the newline character to set the
sink.properties.line_delimiter parameters
我这里试了还是不行,最近一忙就没顾上 @mincwang
@yangmingjie your param line_delimiter(%%%%) and column_separator(%%%%) has the same prefix value, may cause doris to be indistinguishable,modify them to a different prefix and it works
Specify the newline character to set the
sink.properties.line_delimiter parameters
我这里试了还是不行,最近一忙就没顾上 @mincwang
@yangmingjie your param line_delimiter(%%%%) and column_separator(%%%%) has the same prefix value, may cause doris to be indistinguishable,modify them to a different prefix and it works
Specify the newline character to set the
sink.properties.line_delimiter parameters
我这里试了还是不行,最近一忙就没顾上 @mincwang
@yangmingjie your param line_delimiter(%%%%) and column_separator(%%%%) has the same prefix value, may cause doris to be indistinguishable,modify them to a different prefix and it works
My guess this is when DorisStreamLoad#getConnection method body execute conn.addRequestProperty(streamLoadProp),error when carrying these request parameters requesting BE because be 0.14 does not support multi-character delimiters.
[Load] Support multi bytes LineDelimiter and ColumnSeparator #5462
My guess this is when DorisStreamLoad#getConnection method body execute conn.addRequestProperty(streamLoadProp),error when carrying these request parameters requesting BE because be 0.14 does not support multi-character delimiters.
[Load] Support multi bytes LineDelimiter and ColumnSeparator #5462
@mincwang
Yes, the above example will fail.
Since the specified separator is \\t, sink-format uses \\t when splicing data, but when sending a streamload http request, the separator \\t in the request header may be recognized as an escape character \t, The two are not equal, so it cannot be imported.
And \t 、 \n are the default separators, you don’t need to specify them
@mincwang Currently the separator is set to \t, HttpURLConnection.checkMessageHeader will report an error: IllegalArgumentException: Illegal character(s) in message header value
I tried to modify the request to HttpClient to avoid this error, and I will modify it as soon as possible.
Activity
JNSimba commentedon Sep 2, 2021
#6497
minchowang commentedon Sep 13, 2021
@JNSimba Has this problem been solved?
JNSimba commentedon Sep 13, 2021
Specify the newline character to set the
sink.properties.line_delimiter parameters
minchowang commentedon Sep 14, 2021
@JNSimba thanks for your reply. here is my code, and some errors.
doris ddl:
flink sql doris-sink ddl:
When we write data to dorsi by flink streaming, have following error occurs.

minchowang commentedon Sep 14, 2021
doris version: 0.14
flink-doris-connector version : master
flink version : 1.12.2
When we repalce
column_separator=%x01andline_delimiter=%x02, have other error occurs :We check barch-0.14 and master, look the commit message
[Load] Support multi bytes LineDelimiter and ColumnSeparator(#5462) inbroker_scanner.cpp, so we are going to verify it.yangmingjie commentedon Sep 15, 2021
我这里试了还是不行,最近一忙就没顾上 @mincwang
JNSimba commentedon Sep 15, 2021
@yangmingjie your param line_delimiter(%%%%) and column_separator(%%%%) has the same prefix value, may cause doris to be indistinguishable,modify them to a different prefix and it works
minchowang commentedon Sep 15, 2021
@JNSimba Can this PR fix the above problems? please help to confirm.
JNSimba commentedon Sep 15, 2021
@mincwang it is work to change to other characters,hexadecimal may be has problem
minchowang commentedon Sep 15, 2021
What do you recommend set for
column_separatorandline_delimiter?JNSimba commentedon Sep 16, 2021
It can be set as a character that does not appear frequently according to the specific business, or it can be set as a combination of multiple characters
minchowang commentedon Sep 16, 2021
But we doris version is 0.14,only master version support of multiple characters ,fix above problem by this PR #5462.
JNSimba commentedon Sep 16, 2021
Sorry, I may not make it clear, I mean it can be specified as multiple letters, like column_separator=doris
yangmingjie commentedon Sep 16, 2021
还是不行,是不是我用的不对?


目标脚本如下:
错误:
另外,换成单个字符,也还是不行,例如:
'sink.properties.line_delimiter'='#',
'sink.properties.column_separator'='*'
也是一样的问题。
yangmingjie commentedon Sep 16, 2021
我们用的是master分支最新代码打包出来的connector
doris的版本是 0.14
JNSimba commentedon Sep 16, 2021
may not the problem of the separator. It is recommended to see if the sql fields are consistent with the fields in the doris table.
minchowang commentedon Sep 16, 2021
@JNSimba Can you add a JSON import way? i think will have not these problems.
JNSimba commentedon Sep 17, 2021
@mincwang Good idea, will be put on PR as soon as possible
minchowang commentedon Sep 17, 2021
@JNSimba I look forward to your contribution, i hope it can support rowkind convert to a hidden column
__DELETE_SIGN__when use Doris unique model. https://doris.apache.org/master/en/administrator-guide/load-data/batch-delete-manual.html#principleminchowang commentedon Sep 17, 2021
@JNSimba You can re test my this UT?
dorsi be version : 0.14
minchowang commentedon Sep 17, 2021
My guess this is when
DorisStreamLoad#getConnectionmethod body executeconn.addRequestProperty(streamLoadProp),error when carrying these request parameters requesting BE because be 0.14 does not support multi-character delimiters.[Load] Support multi bytes LineDelimiter and ColumnSeparator #5462
JNSimba commentedon Sep 18, 2021
@mincwang
Yes, the above example will fail.
Since the specified separator is
\\t, sink-format uses\\twhen splicing data, but when sending a streamload http request, the separator\\tin the request header may be recognized as an escape character\t, The two are not equal, so it cannot be imported.And
\t、\nare the default separators, you don’t need to specify themJNSimba commentedon Sep 18, 2021
@mincwang Currently the separator is set to
\t, HttpURLConnection.checkMessageHeader will report an error: IllegalArgumentException: Illegal character(s) in message header valueI tried to modify the request to HttpClient to avoid this error, and I will modify it as soon as possible.
minchowang commentedon Sep 18, 2021
@JNSimba Looking forward to your fix, and how do I check my version of doris?
JNSimba commentedon Sep 18, 2021
what mean check the doris version ?
you can use the default separator, just remove the specify .
Or use multi-character separation, like column_separator=‘doris’