druid-io / pydruid

A Python connector for Druid
Other
506 stars 194 forks source link

[dbapi] Fixing header description #168

Closed john-bodley closed 5 years ago

john-bodley commented 5 years ago

This PR fixes an issue when leveraging Druid's header functionality if the column name starts with an underscore.

Previously we were fetching the description from the Row namedtuple which renames invalid fields, and thus a column named _name say is renamed to _0 (or similar). The logic has been updated to fetch the description from the raw row (similar to how the non-header logic works).

to: @betodealmeida @mistercrunch

betodealmeida commented 5 years ago

LGTM