Skip to content

Commit

Permalink
Fix misspellings in many AGE files
Browse files Browse the repository at this point in the history
Corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling).

The misspellings were reported at https://github.com/jsoref/age/actions/runs/5251076994#summary-14208871240

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref committed Jun 22, 2023
1 parent e22c5ac commit e36057d
Show file tree
Hide file tree
Showing 45 changed files with 104 additions and 104 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ We strongly recommend you to subscribe the mailing lists, join the Apache AGE Di

## Pull Requests

Changes to AGE source code are proposed, reviewed, and committed via Github pull requests (described in Code Convention). Pull requests are a great way to get your ideas into this repository. Anyone can view and comment on active changes here. Reviewing others' changes are a good way to learn how the change process works and gain exposure to activity in various parts of the code. You can help by reviewing the changes, asking questions, or pointing out issues as simple as typos.
Changes to AGE source code are proposed, reviewed, and committed via GitHub pull requests (described in Code Convention). Pull requests are a great way to get your ideas into this repository. Anyone can view and comment on active changes here. Reviewing others' changes are a good way to learn how the change process works and gain exposure to activity in various parts of the code. You can help by reviewing the changes, asking questions, or pointing out issues as simple as typos.

## Documentation Changes

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ sudo apt-get install build-essential libreadline-dev zlib1g-dev flex bison
Apache AGE is intended to be simple to install and run. It can be installed with Docker and other traditional ways.

<h4><a><img width="20" src="/img/pg.svg"></a>
&nbsp;Install PosgtreSQL
&nbsp;Install PostgreSQL
</h4>

You will need to install an AGE compatible version of Postgres<a>, for now AGE supports Postgres 11, 12 & 13. Supporting the latest versions is on AGE roadmap.
Expand Down
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Apache AGE 1.3.0 - Release Notes
Implement plus-equal operator in SET clause. (#638)
Implement CI test for python driver. (#587)
Move from travis CI to github actions for build. (#673)
Update all driver CIs to Github actions.
Update all driver CIs to GitHub actions.
Fix build warnings.
Fix golang driver workflow (#563)
Updated Readme for drivers folder. (#642)
Expand Down
2 changes: 1 addition & 1 deletion drivers/README
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ This folder contains drivers for specific languages

### For more information about [Apache AGE](https://age.apache.org/)
* Apache Age : https://age.apache.org/
* Github : https://github.com/apache/age
* GitHub : https://github.com/apache/age
* Document : https://age.apache.org/age-manual/master/index.html
2 changes: 1 addition & 1 deletion drivers/golang/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Check [latest version](https://github.com/apache/age/releases)

### For more information about [Apache AGE](https://age.apache.org/)
* Apache Age : https://age.apache.org/
* Github : https://github.com/apache/age
* GitHub : https://github.com/apache/age
* Document : https://age.apache.org/docs/

### Check AGE loaded on your PostgreSQL
Expand Down
2 changes: 1 addition & 1 deletion drivers/golang/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if not exist "%ProgramFiles%\ANTLR" (

echo ANTLR installation complete.

rem Checking Compatablity for Golang
rem Checking Compatibility for Golang
echo Checking if current version of Golang >= Go 1.18.....
set "minimum_version=1.18"
set "installed_version="
Expand Down
2 changes: 1 addition & 1 deletion drivers/golang/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if ! command -v go >/dev/null 2>&1 || { [ $(go version | grep -o -E '[0-9]+\.[0-
sudo open -w golang.pkg

elif [[ "$os" == "Linux" ]]; then
mdkir -p ~/tmp/go1.20.2
mkdir -p ~/tmp/go1.20.2
cd ~/tmp/go1.20.2
if [[ "$arch" == "x86_64" ]]; then
curl "https://go.dev/dl/go1.20.2.linux-amd64.tar.gz" -o go1.20.2.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion drivers/jdbc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ Vertex : Country, Props : {name=US}
## For more information about [Apache AGE](https://age.apache.org/)

- Apache Age : [https://age.apache.org/](https://age.apache.org/)
- Github[https://github.com/apache/age](https://github.com/apache/age)
- GitHub[https://github.com/apache/age](https://github.com/apache/age)
- Document : [https://age.apache.org/age-manual/master/index.html](https://age.apache.org/age-manual/master/index.html)
2 changes: 1 addition & 1 deletion drivers/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ const results: QueryResultRow = await client?.query<QueryResultRow>(`
```
### For more information about [Apache AGE](https://age.apache.org/)
* Apache Age : https://age.apache.org/
* Github : https://github.com/apache/age
* GitHub : https://github.com/apache/age
* Document : https://age.apache.org/age-manual/master/index.html
4 changes: 2 additions & 2 deletions drivers/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AGType parser and driver support for [Apache AGE](https://age.apache.org/), grap

### Features
* Unmarshal AGE result data(AGType) to Vertex, Edge, Path
* Cypher query support for Psycopg2 PostreSQL driver (enables to use cypher queries directly)
* Cypher query support for Psycopg2 PostgreSQL driver (enables to use cypher queries directly)

### Prerequisites
* over Python 3.9
Expand Down Expand Up @@ -42,7 +42,7 @@ python setup.py install

### For more information about [Apache AGE](https://age.apache.org/)
* Apache Age : https://age.apache.org/
* Github : https://github.com/apache/age
* GitHub : https://github.com/apache/age
* Document : https://age.apache.org/age-manual/master/index.html

### Check AGE loaded on your PostgreSQL
Expand Down
4 changes: 2 additions & 2 deletions drivers/python/age/age.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def execCypher(conn:ext.connection, graphName:str, cypherStmt:str, cols:list=Non
raise _EXCEPTION_NoConnection

cursor = conn.cursor()
#clean up the string for mogrificiation
#clean up the string for mogrification
cypherStmt = cypherStmt.replace("\n", "")
cypherStmt = cypherStmt.replace("\t", "")
cypher = str(cursor.mogrify(cypherStmt, params))
Expand Down Expand Up @@ -146,7 +146,7 @@ def execCypher(conn:ext.connection, graphName:str, cypherStmt:str, cols:list=Non


def cypher(cursor:ext.cursor, graphName:str, cypherStmt:str, cols:list=None, params:tuple=None) -> ext.cursor :
#clean up the string for mogrificiation
#clean up the string for mogrification
cypherStmt = cypherStmt.replace("\n", "")
cypherStmt = cypherStmt.replace("\t", "")
cypher = str(cursor.mogrify(cypherStmt, params))
Expand Down
4 changes: 2 additions & 2 deletions regress/expected/age_global_graph.out
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ SELECT * FROM cypher('ag_graph_1', $$ RETURN delete_global_graphs('ag_graph_1')
(1 row)

-- delete ag_graph_3's context
-- should return true(succeed) beacuse the previous commands should not delete the 3rd graph's context
-- should return true(succeed) because the previous commands should not delete the 3rd graph's context
SELECT * FROM cypher('ag_graph_3', $$ RETURN delete_global_graphs('ag_graph_3') $$) AS (result agtype);
result
--------
Expand All @@ -120,7 +120,7 @@ SELECT * FROM cypher('ag_graph_3', $$ RETURN delete_global_graphs('ag_graph_3')
false
(1 row)

--- delete unitialized graph context
--- delete uninitialized graph context
--- should throw exception graph "ag_graph_4" does not exist
SELECT * FROM cypher('ag_graph_4', $$ RETURN delete_global_graphs('ag_graph_4') $$) AS (result agtype);
ERROR: graph "ag_graph_4" does not exist
Expand Down
2 changes: 1 addition & 1 deletion regress/expected/cypher_call.out
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ SELECT * FROM cypher('cypher_call', $$CALL call_stmt_test.add_agtype(1,2)$$) as
3
(1 row)

/* non-existent schema should fail */
/* nonexistent schema should fail */
SELECT * FROM cypher('cypher_call', $$CALL ag_catalog.add_agtype(1,2)$$) as (sqrt agtype);
ERROR: function ag_catalog.add_agtype(agtype, agtype) does not exist
LINE 2: ...cypher('cypher_call', $$CALL ag_catalog.add_agtype(1,2)$$) a...
Expand Down
2 changes: 1 addition & 1 deletion regress/expected/cypher_create.out
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ cypher('cypher_create', $$
CREATE (b)
RETURN b
$$) as t(b agtype);
ERROR: cypher create clause cannot be rescaned
ERROR: cypher create clause cannot be rescanned
HINT: its unsafe to use joins in a query with a Cypher CREATE clause
-- column definition list for CREATE clause must contain a single agtype
-- attribute
Expand Down
6 changes: 3 additions & 3 deletions regress/expected/cypher_delete.out
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ SELECT * FROM cypher('cypher_delete', $$MATCH(n) DELETE n RETURN n$$) AS (a agty
{"id": 844424930131973, "label": "v", "properties": {}}::vertex
(2 rows)

--Test 4: DETACH DELECT a vertex
--Test 4: DETACH DELETE a vertex
SELECT * FROM cypher('cypher_delete', $$CREATE (:v)-[:e]->(:v)$$) AS (a agtype);
a
---
Expand All @@ -103,7 +103,7 @@ SELECT * FROM cypher('cypher_delete', $$MATCH(n) RETURN n$$) AS (a agtype);
{"id": 844424930131975, "label": "v", "properties": {}}::vertex
(1 row)

--Test 4: DETACH DELECT two vertices tied to the same edge
--Test 4: DETACH DELETE two vertices tied to the same edge
SELECT * FROM cypher('cypher_delete', $$CREATE (:v)-[:e]->(:v)$$) AS (a agtype);
a
---
Expand All @@ -115,7 +115,7 @@ SELECT * FROM cypher('cypher_delete', $$MATCH(n1)-[e]->(n2) DETACH DELETE n1, n2
{"id": 1125899906842627, "label": "e", "end_id": 844424930131977, "start_id": 844424930131976, "properties": {}}::edge
(1 row)

--Test 4: DETACH DELECT a vertex
--Test 4: DETACH DELETE a vertex
SELECT * FROM cypher('cypher_delete', $$CREATE (:v)-[:e]->(:v)$$) AS (a agtype);
a
---
Expand Down
4 changes: 2 additions & 2 deletions regress/expected/cypher_merge.out
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ SELECT * FROM cypher('cypher_merge', $$MATCH (n) DETACH DELETE n $$) AS (a agtyp
(0 rows)

/*
* test 5: Prev clause has results, path does not exist (differnt property name)
* test 5: Prev clause has results, path does not exist (different property name)
*/
--data setup
SELECT * FROM cypher('cypher_merge', $$CREATE ({i: "Hello Merge"}) $$) AS (a agtype);
Expand Down Expand Up @@ -398,7 +398,7 @@ SELECT * FROM cypher('cypher_merge', $$MATCH (n) DETACH DELETE n $$) AS (a agtyp
(0 rows)

/*
* test 13: edge doesn't exists (differnt label), using MATCH
* test 13: edge doesn't exists (different label), using MATCH
*/
-- setup
SELECT * FROM cypher('cypher_merge', $$CREATE ()-[:e]->() $$) AS (a agtype);
Expand Down
4 changes: 2 additions & 2 deletions regress/expected/cypher_set.out
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ SELECT set_test();
(10 rows)

--
-- Updating multiple fieds
-- Updating multiple fields
--
SELECT * FROM cypher('cypher_set', $$MATCH (n) SET n.i = 3, n.j = 5 RETURN n $$) AS (a agtype);
a
Expand Down Expand Up @@ -768,7 +768,7 @@ $$) AS (p agtype);
{"id": 1970324836974593, "label": "Juan", "properties": {}}::vertex
(1 row)

-- test assigning non-map to an enitity
-- test assigning non-map to an entity
SELECT * FROM cypher('cypher_set_1', $$
MATCH (p {name: 'Peter'})
SET p = "Peter"
Expand Down
16 changes: 8 additions & 8 deletions regress/expected/expr.out
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ $$) AS r(result agtype);
(3 rows)

--
--Coearce to Postgres 3 int types (smallint, int, bigint)
--Coerce to Postgres 3 int types (smallint, int, bigint)
--
SELECT create_graph('type_coercion');
NOTICE: graph "type_coercion" has been created
Expand Down Expand Up @@ -1441,9 +1441,9 @@ RETURN ''::int
$$) AS r(result agtype);
ERROR: invalid input syntax for integer: ""
SELECT * FROM cypher('expr', $$
RETURN 'falze'::int
RETURN 'false_'::int
$$) AS r(result agtype);
ERROR: invalid input syntax for integer: "falze"
ERROR: invalid input syntax for integer: "false_"
--
-- Test from an agtype value to agtype int
--
Expand All @@ -1465,7 +1465,7 @@ RETURN ''::bool
$$) AS r(result agtype);
ERROR: typecast expression must be an integer or a boolean
SELECT * FROM cypher('expr', $$
RETURN 'falze'::bool
RETURN 'false_'::bool
$$) AS r(result agtype);
ERROR: typecast expression must be an integer or a boolean
-- Test from an agtype value to an agtype numeric
Expand Down Expand Up @@ -2791,7 +2791,7 @@ $$) AS (toBoolean agtype);

-- should return null
SELECT * FROM cypher('expr', $$
RETURN toBoolean("falze")
RETURN toBoolean("false_")
$$) AS (toBoolean agtype);
toboolean
-----------
Expand Down Expand Up @@ -2861,7 +2861,7 @@ $$) AS (toFloat agtype);

-- should return null
SELECT * FROM cypher('expr', $$
RETURN toFloat("falze")
RETURN toFloat("false_")
$$) AS (toFloat agtype);
tofloat
---------
Expand Down Expand Up @@ -2931,7 +2931,7 @@ $$) AS (toInteger agtype);

-- should return null
SELECT * FROM cypher('expr', $$
RETURN toInteger("falze")
RETURN toInteger("false_")
$$) AS (toInteger agtype);
tointeger
-----------
Expand Down Expand Up @@ -5679,7 +5679,7 @@ SELECT * FROM cypher('UCSC', $$ RETURN collect(5) $$) AS (result agtype);
[5]
(1 row)

-- should return an empty aray
-- should return an empty array
SELECT * FROM cypher('UCSC', $$ RETURN collect(NULL) $$) AS (empty agtype);
empty
-------
Expand Down
2 changes: 1 addition & 1 deletion regress/expected/index.out
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ SELECT * FROM cypher('cypher_index', $$
(us)<-[:has_city]-(:City {city_id: 3, name:"Los Angeles", west_coast: true, country_code:"US"}),
(us)<-[:has_city]-(:City {city_id: 4, name:"Seattle", west_coast: true, country_code:"US"}),
(ca)<-[:has_city]-(:City {city_id: 5, name:"Vancouver", west_coast: true, country_code:"CA"}),
(ca)<-[:has_city]-(:City {city_id: 6, name:"Toroto", west_coast: false, country_code:"CA"}),
(ca)<-[:has_city]-(:City {city_id: 6, name:"Toronto", west_coast: false, country_code:"CA"}),
(ca)<-[:has_city]-(:City {city_id: 7, name:"Montreal", west_coast: false, country_code:"CA"}),
(mx)<-[:has_city]-(:City {city_id: 8, name:"Mexico City", west_coast: false, country_code:"MX"}),
(mx)<-[:has_city]-(:City {city_id: 9, name:"Monterrey", west_coast: false, country_code:"MX"}),
Expand Down
4 changes: 2 additions & 2 deletions regress/sql/age_global_graph.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SELECT * FROM cypher('ag_graph_2', $$ RETURN delete_global_graphs('ag_graph_2')
SELECT * FROM cypher('ag_graph_1', $$ RETURN delete_global_graphs('ag_graph_1') $$) AS (result agtype);

-- delete ag_graph_3's context
-- should return true(succeed) beacuse the previous commands should not delete the 3rd graph's context
-- should return true(succeed) because the previous commands should not delete the 3rd graph's context
SELECT * FROM cypher('ag_graph_3', $$ RETURN delete_global_graphs('ag_graph_3') $$) AS (result agtype);

-- delete all graphs' context again
Expand All @@ -46,7 +46,7 @@ SELECT * FROM cypher('ag_graph_2', $$ RETURN delete_global_graphs('ag_graph_2')
SELECT * FROM cypher('ag_graph_1', $$ RETURN delete_global_graphs('ag_graph_1') $$) AS (result agtype);
SELECT * FROM cypher('ag_graph_3', $$ RETURN delete_global_graphs('ag_graph_3') $$) AS (result agtype);

--- delete unitialized graph context
--- delete uninitialized graph context
--- should throw exception graph "ag_graph_4" does not exist
SELECT * FROM cypher('ag_graph_4', $$ RETURN delete_global_graphs('ag_graph_4') $$) AS (result agtype);

Expand Down
2 changes: 1 addition & 1 deletion regress/sql/cypher_call.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SELECT * FROM cypher('cypher_call', $$CALL sqrt(64) YIELD squirt$$) as (sqrt agt

/* qualified name */
SELECT * FROM cypher('cypher_call', $$CALL call_stmt_test.add_agtype(1,2)$$) as (sqrt agtype);
/* non-existent schema should fail */
/* nonexistent schema should fail */
SELECT * FROM cypher('cypher_call', $$CALL ag_catalog.add_agtype(1,2)$$) as (sqrt agtype);

/* CALL YIELD WHERE, should fail */
Expand Down
6 changes: 3 additions & 3 deletions regress/sql/cypher_delete.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ SELECT * FROM cypher('cypher_delete', $$MATCH()-[e]->() DELETE e RETURN e$$) AS
--Cleanup
SELECT * FROM cypher('cypher_delete', $$MATCH(n) DELETE n RETURN n$$) AS (a agtype);

--Test 4: DETACH DELECT a vertex
--Test 4: DETACH DELETE a vertex
SELECT * FROM cypher('cypher_delete', $$CREATE (:v)-[:e]->(:v)$$) AS (a agtype);
SELECT * FROM cypher('cypher_delete', $$MATCH(n1)-[e]->(n2) DETACH DELETE n1 RETURN e$$) AS (a agtype);

--Cleanup
SELECT * FROM cypher('cypher_delete', $$MATCH(n) RETURN n$$) AS (a agtype);

--Test 4: DETACH DELECT two vertices tied to the same edge
--Test 4: DETACH DELETE two vertices tied to the same edge
SELECT * FROM cypher('cypher_delete', $$CREATE (:v)-[:e]->(:v)$$) AS (a agtype);
SELECT * FROM cypher('cypher_delete', $$MATCH(n1)-[e]->(n2) DETACH DELETE n1, n2 RETURN e$$) AS (a agtype);

--Test 4: DETACH DELECT a vertex
--Test 4: DETACH DELETE a vertex
SELECT * FROM cypher('cypher_delete', $$CREATE (:v)-[:e]->(:v)$$) AS (a agtype);
SELECT * FROM cypher('cypher_delete', $$MATCH(n1)-[e]->(n2) DETACH DELETE n1, n2 RETURN e$$) AS (a agtype);

Expand Down
4 changes: 2 additions & 2 deletions regress/sql/cypher_merge.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ SELECT * FROM cypher('cypher_merge', $$MATCH (n) RETURN n$$) AS (n agtype);
SELECT * FROM cypher('cypher_merge', $$MATCH (n) DETACH DELETE n $$) AS (a agtype);

/*
* test 5: Prev clause has results, path does not exist (differnt property name)
* test 5: Prev clause has results, path does not exist (different property name)
*/
--data setup
SELECT * FROM cypher('cypher_merge', $$CREATE ({i: "Hello Merge"}) $$) AS (a agtype);
Expand Down Expand Up @@ -216,7 +216,7 @@ SELECT count(*) FROM cypher('cypher_merge', $$MATCH (n) RETURN n$$) AS (n agtype
SELECT * FROM cypher('cypher_merge', $$MATCH (n) DETACH DELETE n $$) AS (a agtype);

/*
* test 13: edge doesn't exists (differnt label), using MATCH
* test 13: edge doesn't exists (different label), using MATCH
*/
-- setup
SELECT * FROM cypher('cypher_merge', $$CREATE ()-[:e]->() $$) AS (a agtype);
Expand Down
4 changes: 2 additions & 2 deletions regress/sql/cypher_set.sql
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ SELECT set_test();
SELECT set_test();

--
-- Updating multiple fieds
-- Updating multiple fields
--
SELECT * FROM cypher('cypher_set', $$MATCH (n) SET n.i = 3, n.j = 5 RETURN n $$) AS (a agtype);

Expand Down Expand Up @@ -247,7 +247,7 @@ SELECT * FROM cypher('cypher_set_1', $$
RETURN p
$$) AS (p agtype);

-- test assigning non-map to an enitity
-- test assigning non-map to an entity
SELECT * FROM cypher('cypher_set_1', $$
MATCH (p {name: 'Peter'})
SET p = "Peter"
Expand Down
Loading

0 comments on commit e36057d

Please sign in to comment.