Skip to content

Commit 71d3165

Browse files
committed
update the error messages
1 parent ec334fd commit 71d3165

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

modules/ROOT/pages/errors/gql-errors/22NAC.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
= 22NAC
22

33
== Status description
4-
error: data exception - characters after quote in CSV field. At `{ <<input1>> }` @ position `{ <<pos>> }` - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what was read: `{ <<input2>> }`.
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 }.
55

66
== Explanation
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.
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.
88

99
== Example scenario
1010

@@ -22,7 +22,7 @@ LOAD CSV 'somefile.csv' AS line RETURN count(line)
2222
The following error will be thrown:
2323
[source]
2424
----
25-
error: data exception - characters after quote in CSV field. At 'somefile.csv' @ position 14 - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what I read: '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'`.
2626
----
2727

2828
ifndef::backend-pdf[]

modules/ROOT/pages/errors/gql-errors/22NAD.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NAD
22

33
== Status description
4-
error: data exception - missing end quote in CSV field. At '{ <<input1>> }' @ position `{ <<dim1>> }` - Missing end for quote (\``{ <<input2>> }`\`) which started on line `{ <<dim2>> }`.
4+
error: data exception - missing end quote in CSV field. Missing end quote at position { <<pos>> } in { <<input>> }.
55

66
== Explanation
77
When a CSV file has a field that starts with a quote but misses an ending quote that file is formatted incorrectly and trying to read such a file with `LOAD CSV` will result in an error.
@@ -22,7 +22,7 @@ LOAD CSV 'somefile.csv' AS line RETURN count(line)
2222
The following error will be thrown:
2323
[source]
2424
----
25-
error: data exception - missing end quote in CSV field. At 'somefile.csv' @ position 15 - Missing end for quote (\`"\`) which started on line 3.
25+
error: data exception - missing end quote in CSV field. Missing end quote at position `15` in `'somefile.csv'`.
2626
----
2727

2828
ifndef::backend-pdf[]

modules/ROOT/pages/errors/gql-errors/22NAE.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NAE
22

33
== Status description
4-
error: data exception - multi-line field in illegal CSV context. At `{ <<input>> }` @ position `{ <<pos>> }` - Multi-line fields are illegal in this context and so this might suggest that there's a field with a start quote, but a missing end quote.
4+
error: data exception - multi-line field in illegal CSV context. Multi-line fields are illegal in this context. Verify that there is not a missing end quote in { <<input>> } at position { <<pos>> }.
55

66
== Explanation
77
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.
@@ -24,7 +24,7 @@ LOAD CSV 'somefile.csv' AS line RETURN count(line)
2424
The following error will be thrown:
2525
[source]
2626
----
27-
error: data exception - multi-line field in illegal CSV context. At 'somefile.csv' @ position 15 - Multi-line fields are illegal in this context and so this might suggest that there's a field with a start quote, but a missing end quote.
27+
error: data exception - multi-line field in illegal CSV context. Multi-line fields are illegal in this context. Verify that there is not a missing end quote in { 'somefile.csv' } at position { 15 }.
2828
----
2929

3030
ifndef::backend-pdf[]

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,15 +586,15 @@ Status description:: error: data exception - mixed type list for property-based
586586

587587
=== xref:errors/gql-errors/22NAC.adoc[22NAC]
588588

589-
Status description:: error: data exception - characters after quote in CSV field. At `{ <<input1>> }` @ position `{ <<pos>> }` - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what was read: `{ <<input2>> }`.
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 }.
590590

591591
=== xref:errors/gql-errors/22NAD.adoc[22NAD]
592592

593-
Status description:: error: data exception - missing end quote in CSV field. At `{ <<input1>> }` @ position `{ <<dim1>> }` - Missing end for quote (\``{ <<input2>> }`\`) which started on line `{ <<dim2>> }`.
593+
Status description:: error: data exception - missing end quote in CSV field. Missing end quote at position { <<pos>> } in { <<input>> }.
594594

595595
=== xref:errors/gql-errors/22NAE.adoc[22NAE]
596596

597-
Status description:: error: data exception - multi-line field in illegal CSV context. At `{ <<input>> }` @ position `{ <<pos>> }` - Multi-line fields are illegal in this context and so this might suggest that there's a field with a start quote, but a missing end quote.
597+
Status description:: error: data exception - multi-line field in illegal CSV context. Multi-line fields are illegal in this context. Verify that there is not a missing end quote in { <<input>> } at position { <<pos>> }.
598598

599599
=== xref:errors/gql-errors/22NB0.adoc[22NB0]
600600

0 commit comments

Comments
 (0)