drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [drill] nielsbasjes commented on pull request #2112: DRILL-7534: Convert HTTPD Format Plugin to EVF
Date Thu, 19 Nov 2020 09:23:38 GMT

nielsbasjes commented on pull request #2112:
URL: https://github.com/apache/drill/pull/2112#issuecomment-730242237


   Hmmm, the schema of a map seems "funny" in the output.
   
   I do ``` `SELECT `request_firstline_uri_query_$` FROM ...``` on a file that has
   ```
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?one=1 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?two=2 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?three=3 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?four=4 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?five=5 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?six=6 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?seven=7 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?eight=8 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?nine=9 HTTP/1.1" 200 1213
   127.0.0.1 - - [19/Nov/2020:10:14:00 +0100] "GET /paramtest?ten=10 HTTP/1.1" 200 1213
   ```
   
   ```
       RowSet results = client.queryBuilder().sql(sql).rowSet();
       results.print();
   ```
   
   and I get as output:
   
   ```
   #: `request_firstline_uri_query_$` STRUCT<`one` VARCHAR, `two` VARCHAR, `three` VARCHAR,
`four` VARCHAR, `five` VARCHAR, `six` VARCHAR, `seven` VARCHAR, `eight` VARCHAR, `nine` VARCHAR,
`ten` VARCHAR>
   0: {"1", null, null, null, null, null, null, null, null, null}
   1: {null, "2", null, null, null, null, null, null, null, null}
   2: {null, null, "3", null, null, null, null, null, null, null}
   3: {null, null, null, "4", null, null, null, null, null, null}
   4: {null, null, null, null, "5", null, null, null, null, null}
   5: {null, null, null, null, null, "6", null, null, null, null}
   6: {null, null, null, null, null, null, "7", null, null, null}
   7: {null, null, null, null, null, null, null, "8", null, null}
   8: {null, null, null, null, null, null, null, null, "9", null}
   9: {null, null, null, null, null, null, null, null, null, "10"}
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message