Closed karolisg closed 1 year ago
Tried to replicate this bug but failed - following is the steps that I took
dozer api generate-token
query
with no filtergetAuthToken
of AuthGrpcService
with access_filter
{"access_filter": "{\"Custom\":{\"flights\":{\"filter\":{\"flight_id\":{\"$eq\":32658}},\"fields\":[]}}}"}
query
Both of the scenario worked fine with the config provided
Looks like it was postman cache issue.
Describe the bug
If table contains any number, GRPC query method fails with error like
Response message parsing error: invalid wire type 7 at offset 217
This started to happen after
feat: u128 and i128 Field and FieldType (#1315)
(611912ee486d742773c5c43a515b4b3392bac6f4)Environment
To Reproduce
Steps to reproduce the behavior:
dozer-config.yaml
flags: grpc_web: true
api: api_security: !Jwt ABCD
connections:
sql: |
select f.arrival_airport as airport, a.coordinates as coordinates, COUNT(t.ticket_no) as tickets
INTO airports_count
from tickets t
join ticket_flights tf on t.ticket_no = tf.ticket_no
join flights f on tf.flight_id = f.flight_id
join airports a on f.arrival_airport = a.airport_code
group by f.arrival_airport, a.coordinates;
#
select extract(HOUR FROM f.window_start) as start, count(f.window_start) as dep_count
INTO departures_count
from TUMBLE(flights, scheduled_departure, '4 HOURS') f
group by extract(HOUR FROM f.window_start)
sources:
name: tickets table_name: tickets columns: connection: !Ref flights_conn
name: flights table_name: flights columns: connection: !Ref flights_conn
name: ticket_flights table_name: ticket_flights columns: connection: !Ref flights_conn
name: airports table_name: airports columns: connection: !Ref flights_conn
endpoints:
name: flights path: /bookings/flights_x table_name: flights index: primary_key:
name: airports path: /bookings/airports table_name: airports index: primary_key: