archon gum created HIVE-21436:
---------------------------------
Summary: "Malformed ORC file" when only one data-file in external
table directory
Key: HIVE-21436
URL: https://issues.apache.org/jira/browse/HIVE-21436
Project: Hive
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: archon gum
# env
* Presto 305
* Hive 3.1.0

# step
```sql
-- create external table using presto
create table hive.dw.dim_date2 (
d date
) with (
format = 'ORC',
external_location = '/user/hive/warehouse/dw.db/dim_date2/'
);
-- insert one row using presto
insert into dim_date2 values (current_date);
```
when using `hiveserver2` to query, it works only at the first query and error
after then

If I insert another row, it works
```sql
-- insert one row using presto
insert into dim_date2 values (current_date);
```

In HDFS (BTY, how to change the replica factor to HDFS default)

--
This message was sent by Atlassian JIRA
(v7.6.3#76005)