-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reserved word acceptance test, and broken between one (#77)
* Fix acceptance test for reserved keyword * Add broken between query
- Loading branch information
1 parent
f5db94f
commit 34a6ae5
Showing
4 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
select | ||
e.instance_id | ||
, percentile_cont(0.75) within group (order by e.running_time) as p75_time | ||
-- the parser trips up on the opening bracket in the `filter (where ...)` clause | ||
, percentile_cont(0.75) within group (order by e.running_time) filter (where e.error = '') as p75_success_time | ||
from execution e | ||
group by 1 |
4 changes: 4 additions & 0 deletions
4
test/resources/acceptance/compound__cte_recursive.analysis.edn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{:tables [{:table "employees"}] | ||
:source-columns [{:table "employees", :column "id"} | ||
{:table "employees", :column "manager_id"} | ||
{:table "employees", :column "name"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
WITH RECURSIVE hierarchy AS ( | ||
SELECT id, manager_id, name | ||
FROM employees | ||
WHERE manager_id IS NULL | ||
UNION ALL | ||
SELECT e.id, e.manager_id, e.name | ||
FROM employees e | ||
JOIN hierarchy eh ON e.manager_id = eh.id | ||
) | ||
SELECT * FROM hierarchy; |