Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 818 Bytes

query.md

File metadata and controls

43 lines (31 loc) · 818 Bytes

Bring up iox

iox

Bring up iox with logging

alias ioxdebugnoh2='iox run all-in-one --log-filter debug,hyper::proto::h1=info,h2=info'

Write out the temp data...

alias ioxwtemp='ioxg; iox write postgresql:///iox_shared ./test_fixtures/lineproto/temperature.lp --host http://localhost:8081'

Bring up the sql client

iox sql

Now you are in the sql client.

  • use postgresql:///iox_shared;
  • show namespaces;
  • show tables;
  • select * from h2o_temperature;
  • select * from h2o_temperature where state = 'WA';
  • select * from h2o_temperature where state = 'CA';
  • set format csv;
  • set format json;
  • set format pretty;

Code related to querying

test_helpers_end_to_end/src/client.rs
  • try_run_query
influxdb_iox_client/src/client/flight.rs
  • perform_query