Skip to content

Commit

Permalink
Add 'primary' to allowed Hive words
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoiv committed Sep 3, 2021
1 parent 44b2e6d commit f83d206
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.7.2] 2021-09-03

### Changed
- Added from 'primary' to potentially-allowed Hive reserved words in ORC functionality

## [1.7.1] 2021-09-02

### Changed
Expand Down
2 changes: 1 addition & 1 deletion honeycomb/_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = "honeycomb"
__description__ = "Multi-source/engine querying tool"
__url__ = "https://github.com/neighborhoods/honeycomb"
__version__ = "1.7.1"
__version__ = "1.7.2"
__author__ = "George Wood (@Geoiv)"
__author_email__ = "[email protected]"
2 changes: 1 addition & 1 deletion honeycomb/orc.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def insert_into_orc_table(table_name, schema, source_table_name, source_schema,
"""
# List of reserved words in Hive that could reasonably be used as column
# names. This list may expand with time
hive_reserved_words = ['date', 'time', 'timestamp', 'order']
hive_reserved_words = ['date', 'time', 'timestamp', 'order', 'primary']

# This discludes partition columns, which is desired behavior
col_names = meta.get_table_column_order(table_name, schema)
Expand Down

0 comments on commit f83d206

Please sign in to comment.