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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/22NAC.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
= 22NAC
2
2
3
3
== Status description
4
-
error: data exception - characters after quote in CSV field. Characters after an ending quote in a CSV field are not supported. See `{ <<input>>1 }` at position `{ <<pos>> }`. This is read as `{ <<input>>2 }`.
4
+
error: data exception - characters after quote in CSV field. Characters after an ending quote in a CSV field are not supported. See `{ <<input>> }` at position `{ <<pos>> }`. This is read as `{ <<variable>> }`.
5
5
6
6
== Explanation
7
7
When a CSV file has a field that starts with a quote has content after the ending quote that file is formatted incorrectly and trying to§ read such a file with `LOAD CSV` will result in an error.
8
8
9
9
== Example scenario
10
10
11
11
Given that `somefile.csv` is a CSV file with the following content:
12
-
`
12
+
----
13
13
x,y
14
14
"x",1
15
15
"y"y,2
16
-
`
16
+
----
17
17
Then running the query;
18
18
----
19
19
LOAD CSV 'somefile.csv' AS line RETURN count(line)
@@ -22,7 +22,7 @@ LOAD CSV 'somefile.csv' AS line RETURN count(line)
22
22
The following error will be thrown:
23
23
[source]
24
24
----
25
-
error: data exception - characters after quote in CSV field. Characters after an ending quote in a CSV field are not supported. See 'somefile.csv' at position 14. This is read as 'y"y'.
25
+
error: data exception - characters after quote in CSV field. Characters after an ending quote in a CSV field are not supported. See 'somefile.csv' at position 14. This is read as `y"y` .
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/index.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -586,7 +586,7 @@ Status description:: error: data exception - mixed type list for property-based
586
586
587
587
=== xref:errors/gql-errors/22NAC.adoc[22NAC]
588
588
589
-
Status description:: error: data exception - characters after quote in CSV field. Characters after an ending quote in a CSV field are not supported. See `{ <<input>>1 }` at position `{ <<pos>> }`. This is read as `{ <<input>>2 }`.
589
+
Status description:: error: data exception - characters after quote in CSV field. Characters after an ending quote in a CSV field are not supported. See `{ <<input>> }` at position `{ <<pos>> }`. This is read as `{ <<variable>> }`.
0 commit comments