Skip to content

Commit

Permalink
Special-case schemas for temp tables with no columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Sep 9, 2024
1 parent 3d5496d commit 379f45d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/daf/butler/direct_query_driver/_query_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ def make_table_spec(self) -> ddl.TableSpec:
)
)
)
if not results.fields:
results.fields.add(ddl.FieldSpec(name=self.EMPTY_COLUMNS_NAME, dtype=self.EMPTY_COLUMNS_TYPE))
return results


Expand Down

0 comments on commit 379f45d

Please sign in to comment.