comminuty[patch]:Fix Error in apache doris insert (#19989)

- **Issue:** #19886
This commit is contained in:
Guangdong Liu 2024-04-19 04:34:32 +08:00 committed by GitHub
parent 6f0d4f3f09
commit e3c2431c5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ CREATE TABLE IF NOT EXISTS {self.config.database}.{self.config.table}(
( (
f"'{self.escape_str(str(_n))}'" f"'{self.escape_str(str(_n))}'"
if idx != embed_tuple_index if idx != embed_tuple_index
else f"array<float>{str(_n)}" else f"{str(_n)}"
) )
for (idx, _n) in enumerate(n) for (idx, _n) in enumerate(n)
] ]