-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: add clustername to ALLOWED_GROUP_BY_FIELDS #25
base: main
Are you sure you want to change the base?
Conversation
where did |
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.
I opened an issue (hasadna/open-bus-pipelines#7) regarding documenting the clustertoline table or adding it to ETL, but it shouldn't prevent merging this PR
@OriHoch |
@NoamGaash did you test your API changes locally? how did you test it? |
@OriHoch I have tested this SQL query: select
operator_ref, clustername,
count(1) as total_routes,
sum(agg.num_planned_rides) as total_planned_rides,
sum(agg.num_actual_rides) as total_actual_rides
from gtfs_rides_agg agg, gtfs_route rt join clustertoline c on rt.line_ref = c.officelineid
where
agg.gtfs_route_id = rt.id
and agg.gtfs_route_date >= '2023-01-01'
and agg.gtfs_route_date <= '2023-01-10'
group by operator_ref, clustername |
There is an error, following is the bug report: reproduction steps
expected
actual
|
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.
there is an error - see previous comment for the bug report
please test locally
this pr will allow grouping lines by cluster.
for example, grouping all rides belongs the נגב or to the גולן clusters.