Commit f577e23
authored
Use existing schema when querying local data. (#86)
Datafusion needs a valid schema to execute a query. If no associated schema
found for registered table then datafusion tries to infer that schema. If
there are no available listings from which schema can be derived then it fails
and returns an error.
This causes entire query to fail and return error response. This is fixed by
giving it a proper schema to work with that is already part of metadata.
There are however ways that this schema is might not be available
( maybe first event has happened yet), then we simply return doing no
changes to RecordBatch.
Fixes parseablehq/console#141 parent 3c1adf7 commit f577e23
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
103 | | - | |
| 113 | + | |
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| |||
0 commit comments