Skip to content

Commit

Permalink
Fix tables (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPryce-Aklundh committed Jan 30, 2025
1 parent 9148bb7 commit ac204d2
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 29 deletions.
6 changes: 3 additions & 3 deletions modules/ROOT/pages/clauses/call.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ CALL dbms.checkConfigValue('server.bolt.enabled', 'true')
| "valid" | "message"
| true | "requires restart"
1+d|Rows: 2
2+d|Rows: 1
|===
====
Expand Down Expand Up @@ -118,7 +118,7 @@ CALL dbms.checkConfigValue($setting, $value)
| "valid" | "message"
| true | "requires restart"
1+d|Rows: 2
2+d|Rows: 1
|===
[NOTE]
Expand Down Expand Up @@ -153,7 +153,7 @@ CALL dbms.checkConfigValue($setting, 'true')
| "valid" | "message"
| true | "requires restart"
1+d|Rows: 2
2+d|Rows: 1
|===
====
Expand Down
3 changes: 2 additions & 1 deletion modules/ROOT/pages/clauses/where.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ For more information, see the section about the xref:syntax/operators.adoc#match
| 'Andy'
| 'Timothy'
| 'Peter'
2+|Rows: 1

1+d|Rows: 3
|===

Note that the `IS NORMALIZED` operator returns `null` when used on a non-`STRING` value.
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/functions/aggregating.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ The `Guy Pearce` node will, therefore, get counted twice when not using `DISTINC
| friendOfFriend.name | count(friendOfFriend) | count(ALL friendOfFriend) | count(DISTINCT friendOfFriend)
| "Guy Pearce" | 2 | 2 | 1
2+d|Rows: 1
4+d|Rows: 1
|===
======
Expand Down
55 changes: 33 additions & 22 deletions modules/ROOT/pages/syntax/operators.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ Even though both *'Anne'* and *'Carol'* have blue eyes, *'blue'* is only returne
| +p.eyeColor+
| +"blue"+
| +"brown"+
1+d|Rows: 2 +
Nodes created: 3 +
Properties set: 6 +
Labels added: 3

1+d|Rows: 2
|===

`DISTINCT` is commonly used in conjunction with xref::functions/aggregating.adoc[aggregating functions].
Expand Down Expand Up @@ -102,10 +100,8 @@ RETURN p.name
| +p.name+
| +"Jane"+
| +"Tom"+
1+d|Rows: 2 +
Nodes created: 2 +
Properties set: 4 +
Labels added: 2

1+d|Rows: 2
|===


Expand All @@ -131,10 +127,8 @@ RETURN DISTINCT restaurant.name
|===
| +restaurant.name+
| +"Hungry Jo"+
1+d|Rows: 1 +
Nodes created: 4 +
Properties set: 8 +
Labels added: 4

1+d|Rows: 1
|===

See xref::clauses/where.adoc#query-where-basic[Basic usage] for more details on dynamic property access.
Expand Down Expand Up @@ -165,10 +159,8 @@ All the existing properties on the node are replaced by those provided in the ma
|===
| +p.name+ | +p.age+ | +p.livesIn+
| +"Ellen"+ | +<null>+ | +"London"+
3+d|Rows: 1 +
Nodes created: 1 +
Properties set: 5 +
Labels added: 1

3+d|Rows: 1
|===

See xref::clauses/set.adoc#set-replace-properties-using-map[Replace all properties using a map and `=`] for more details on using the property replacement operator `=`.
Expand All @@ -194,10 +186,8 @@ The properties on the node are updated as follows by those provided in the map:
|===
| +p.name+ | +p.age+ | +p.livesIn+
| +"Ellen"+ | +20+ | +"London"+
3+d|Rows: 1 +
Nodes created: 1 +
Properties set: 4 +
Labels added: 1

3+d|Rows: 1
|===

See xref::clauses/set.adoc#set-setting-properties-using-map[Mutate specific properties using a map and `+=`] for more details on using the property mutation operator `+=`.
Expand Down Expand Up @@ -250,6 +240,7 @@ RETURN b - a AS result
|===
| +result+
| +7+

1+d|Rows: 1
|===

Expand Down Expand Up @@ -292,6 +283,7 @@ RETURN one > two AS result
|===
| +result+
| +true+

1+d|Rows: 1
|===

Expand All @@ -317,6 +309,7 @@ RETURN candidate
| +candidate+
| +"John"+
| +"Jonathan"+

1+d|Rows: 2
|===

Expand Down Expand Up @@ -531,6 +524,7 @@ RETURN number
| +4+
| +7+
| +9+

1+d|Rows: 3
|===

Expand Down Expand Up @@ -560,6 +554,7 @@ RETURN 'neo' + '4j' AS result
|===
| +result+
| +"neo4j"+

1+d|Rows: 1
|===

Expand Down Expand Up @@ -605,7 +600,8 @@ RETURN "the \u212B char" IS NORMALIZED AS normalized
|===
| normalized
| false
2+|Rows: 1

1+|Rows: 1
|===

Because the given `STRING` contains a non-normalized Unicode character (`\u212B`), `false` is returned.
Expand All @@ -632,7 +628,8 @@ RETURN "the \u212B char" IS NOT NORMALIZED AS notNormalized
|===
| notNormalized
| true
2+|Rows: 1

1+|Rows: 1
|===

Because the given `STRING` contains a non-normalized Unicode character (`\u212B`), and is not normalized, `true` is returned.
Expand Down Expand Up @@ -752,6 +749,7 @@ RETURN aDateTime + aDuration, aDateTime - aDuration
|===
| +aDateTime + aDuration+ | +aDateTime - aDuration+
| +1996-10-11T12:31:14.000000002+ | +1972-10-11T12:31:13.999999998+

2+d|Rows: 1
|===

Expand Down Expand Up @@ -791,6 +789,7 @@ RETURN
|===
| +date1+ | +date2+
| +2012-02-28+ | +2012-02-29+

2+d|Rows: 1
|===

Expand All @@ -812,6 +811,7 @@ RETURN duration1, duration2, duration1 + duration2, duration1 - duration2
|===
| +duration1+ | +duration2+ | +duration1 + duration2+ | +duration1 - duration2+
| +P12Y5M14DT16H13M10.000000001S+ | +P1M-14DT15H49M10S+ | +P12Y6MT32H2M20.000000001S+ | +P12Y4M28DT24M0.000000001S+

4+d|Rows: 1
|===

Expand All @@ -833,6 +833,7 @@ RETURN aDuration, aDuration * 2, aDuration / 3
|===
| +aDuration+ | +aDuration * 2+ | +aDuration / 3+
| +P14DT13M10.000000001S+ | +P28DT26M20.000000002S+ | +P4DT16H4M23.333333333S+

3+d|Rows: 1
|===

Expand Down Expand Up @@ -867,6 +868,7 @@ RETURN p.person.name
|===
| +p.person.name+
| +"Anne"+

1+d|Rows: 1
|===

Expand Down Expand Up @@ -896,6 +898,7 @@ RETURN a[$myKey] AS result
|===
| +result+
| +"Anne"+

1+d|Rows: 1
|===

Expand Down Expand Up @@ -930,6 +933,7 @@ RETURN [1,2,3,4,5] + [6,7] AS myList
|===
| +myList+
| +[1,2,3,4,5,6,7]+

1+d|Rows: 1
|===

Expand All @@ -948,6 +952,7 @@ RETURN [1,2,3,4,5] || [6,7] AS myList
|===
| myList
| [1,2,3,4,5,6,7]

1+d|Rows: 1
|===

Expand All @@ -971,6 +976,7 @@ RETURN number
| +number+
| +2+
| +3+

1+d|Rows: 2
|===

Expand All @@ -997,6 +1003,7 @@ If the left-hand operator had been `[1, 2]` instead of `[2, 1]`, the query would
|===
| +inList+
| +true+

1+d|Rows: 1
|===

Expand All @@ -1015,6 +1022,7 @@ However, `IN` evaluates to `false` as the right-hand operand does not contain an
|===
| +inList+
| +false+

1+d|Rows: 1
|===

Expand Down Expand Up @@ -1047,6 +1055,7 @@ The square brackets will extract the elements from the start index `1`, and up t
|===
| +result+
| +["John","Bill"]+

1+d|Rows: 1
|===

Expand Down Expand Up @@ -1076,6 +1085,7 @@ RETURN names[$myIndex] AS result
|===
| +result+
| +"John"+

1+d|Rows: 1
|===

Expand All @@ -1097,6 +1107,7 @@ RETURN 3 IN l[0] AS result
|===
| +result+
| +true+

1+d|Rows: 1
|===

Expand Down
2 changes: 0 additions & 2 deletions modules/ROOT/pages/values-and-types/temporal.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,6 @@ For more information, see the xref::values-and-types/temporal.adoc#cypher-tempor
|
|
|
|

|===


Expand Down

0 comments on commit ac204d2

Please sign in to comment.