clean up foreign table
(table *foreignTable)
| 289 | |
| 290 | // clean up foreign table |
| 291 | func (qc *AQLQueryContext) cleanUpForeignTable(table *foreignTable) { |
| 292 | if table != nil { |
| 293 | deviceFreeAndSetNil(&table.devicePrimaryKeyPtr) |
| 294 | for _, batch := range table.batches { |
| 295 | for _, column := range batch { |
| 296 | deviceFreeAndSetNil(&column.basePtr) |
| 297 | } |
| 298 | } |
| 299 | table.batches = nil |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | // getGeoShapeLatLongSlice format GeoShapeGo into slices of float32 for query purpose |
| 304 | // Lats and Longs are stored in the format as [a1,a2,...an,a1,MaxFloat32,b1,bz,...bn] |
no test coverage detected