Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow writing test queries in multiple lines #1602

Merged
merged 1 commit into from
May 31, 2023

Conversation

rfdavid
Copy link
Collaborator

@rfdavid rfdavid commented May 31, 2023

This PR allows writing queries in multiple lines in the test file. Example:

-QUERY MATCH (n:Person {id: 1129})-[r:Person_knows_Person]-(friend)
       RETURN friend.id AS personId,
              friend.firstName AS firstName,
              friend.lastName AS lastName,
              r.creationDate AS friendshipCreationDate
       ORDER BY friendshipCreationDate DESC, personId ASC
---- 7

Notes:

  1. line breaks will be replaced by a single space
  2. The next line doesn't need to be necessarily ----. Any valid token will consider the query is finished (ie -CHECK_ORDER)

@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (8bbec69) 91.93% compared to head (2509945) 91.93%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1602   +/-   ##
=======================================
  Coverage   91.93%   91.93%           
=======================================
  Files         703      704    +1     
  Lines       25545    25567   +22     
=======================================
+ Hits        23484    23505   +21     
- Misses       2061     2062    +1     

see 28 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rfdavid rfdavid merged commit da3b552 into kuzudb:master May 31, 2023
8 checks passed
@rfdavid rfdavid deleted the query_multiple_lines branch May 31, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants