Fix handling of Hive bucketed tables