Skip to content

Commit

Permalink
Fix Cypher query on frequently used table on user (amundsen-io#94)
Browse files Browse the repository at this point in the history
* Fix Cypher query on frequently used table on user

* Increment version
  • Loading branch information
jinhyukchang authored Dec 20, 2019
1 parent f8d17c5 commit d3ac482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metadata_service/proxy/neo4j_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def get_frequently_used_tables(self, *, user_email: str) -> Dict[str, Any]:
query = textwrap.dedent("""
MATCH (user:User {key: $query_key})-[r:READ]->(tbl:Table)
WHERE EXISTS(r.published_tag) AND r.published_tag IS NOT NULL
WITH user, r, tbl ORDER BY r.published_tag DESC, r.total_reads DESC LIMIT 50
WITH user, r, tbl ORDER BY r.published_tag DESC, r.read_count DESC LIMIT 50
MATCH (tbl:Table)<-[:TABLE]-(schema:Schema)<-[:SCHEMA]-(clstr:Cluster)<-[:CLUSTER]-(db:Database)
OPTIONAL MATCH (tbl)-[:DESCRIPTION]->(tbl_dscrpt:Description)
RETURN db, clstr, schema, tbl, tbl_dscrpt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup, find_packages

__version__ = '1.1.6'
__version__ = '1.1.7'


requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
Expand Down

0 comments on commit d3ac482

Please sign in to comment.