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;
- try_run_query
- perform_query