-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
GSoC 2023: Aryan Gupta Week 2 #296
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ src/version/version.h | |
.directory | ||
notUsed | ||
*.swp | ||
|
||
taptest.sh | ||
run.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,19 @@ UPDATE edges AS edge_table | |
SET node_count=count.sum | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please do not update result files unless things work 100% |
||
FROM | ||
(SELECT | ||
from_v, | ||
start_vid, | ||
sum(node) AS sum | ||
FROM | ||
pgr_drivingDistance( | ||
'SELECT id, source, target, ST_Length(geom) AS cost FROM edges', | ||
ARRAY(SELECT DISTINCT source FROM edges), | ||
1, | ||
false) | ||
GROUP BY from_v) AS count | ||
WHERE edges.source=count.from_v | ||
GROUP BY start_vid) AS count | ||
WHERE edges.source=count.start_vid | ||
; | ||
ERROR: invalid reference to FROM-clause entry for table "edges" | ||
LINE 14: WHERE edges.source=count.from_v | ||
LINE 14: WHERE edges.source=count.start_vid | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clearly there is something wrong. |
||
^ | ||
HINT: Perhaps you meant to reference the table alias "edge_table". | ||
ALTER TABLE edges | ||
|
@@ -50,16 +50,16 @@ UPDATE network AS network | |
SET node_count=count.sum | ||
FROM | ||
(SELECT | ||
from_v, | ||
start_vid, | ||
sum(node) AS sum | ||
FROM | ||
pgr_drivingDistance( | ||
'SELECT id, source, target, cost FROM network', | ||
ARRAY(SELECT DISTINCT source FROM network), | ||
1, | ||
false) | ||
GROUP BY from_v) AS count | ||
WHERE network.source=count.from_v | ||
GROUP BY start_vid) AS count | ||
WHERE network.source=count.start_vid | ||
; | ||
ERROR: current transaction is aborted, commands ignored until end of transaction block | ||
ALTER TABLE network | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read:
https://github.com/pgRouting/GSoC-pgRouting/pull/295/files#r1225944589