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
should have a \b on each side of the parentheses group, otherwise e.g. JSON is matched instead of JSONEachRow.
So:
var formatRegexp = /FORMAT\s+\b(BlockTabSeparated|CSV|CSVWithNames|JSON|JSONCompact|JSONEachRow|Native|Null|Pretty|PrettyCompact|PrettyCompactMonoBlock|PrettyNoEscapes|PrettyCompactNoEscapes|PrettySpaceNoEscapes|PrettySpace|RowBinary|TabSeparated|TabSeparatedRaw|TabSeparatedWithNames|TabSeparatedWithNamesAndTypes|TSKV|Values|Vertical|XML)\b/i;
So options.format ended up being set as JSON whatever I was doing.
The text was updated successfully, but these errors were encountered:
I was trying to sending an INSERT query with a JSONEachRow format and any of my attempts failed.
While debugging I found two problems:
The line
node-clickhouse/src/clickhouse.js
Line 272 in 5ac5a8f
options.format = "JSONEachRow"
I have explicitly set. Is that on purpose? If so, why?The regexp
node-clickhouse/src/clickhouse.js
Line 269 in 5ac5a8f
\b
on each side of the parentheses group, otherwise e.g.JSON
is matched instead ofJSONEachRow
.So:
So
options.format
ended up being set asJSON
whatever I was doing.The text was updated successfully, but these errors were encountered: