Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adam-cowley/neo4j-bigquery
Yo dawg, I heard you like queries so we put some BigQuery in your query so you can query BigQuery from your query
https://github.com/adam-cowley/neo4j-bigquery
bigquery cypher neo4j neo4j-procedures
Last synced: about 1 month ago
JSON representation
Yo dawg, I heard you like queries so we put some BigQuery in your query so you can query BigQuery from your query
- Host: GitHub
- URL: https://github.com/adam-cowley/neo4j-bigquery
- Owner: adam-cowley
- Created: 2018-06-27T08:53:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-27T12:20:41.000Z (over 6 years ago)
- Last Synced: 2024-10-30T13:50:42.912Z (3 months ago)
- Topics: bigquery, cypher, neo4j, neo4j-procedures
- Language: Java
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neo4j & BigQuery
Blog post coming soon...
## Installation
1. Build the fat jar using `gradle clean shadowJar` and copy to your `$NEO4J_HOME/plugins` folder.
2. Set the Project ID and path to credentials file in `neo4j.conf`
```
bigquery.project_id=neo4j-bigquery-test
bigquery.key_file=/path/to/credentials.json
```
3. Restart Neo4j## Usage
> `bigQuery.run(query [, useLegacySql])`
Run the `bigQuery.run` procedure with a query and optionally set the `useLegacySql` argument to true.
```cypher
CALL bigQuery.run('
SELECT id, title
FROM `bigquery-public-data.stackoverflow.posts_questions`
LIMIT 10
') YIELD row```
**Note:** This library currently doesn't handle nested (repeated) elements well. If your query contains nested elements, you will have to un-nest them in the SQL query using `UNNEST`.
```sql
UNNEST (hits) as hits
```
*It's on the TODO list.*