You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by cxzl25 <gi...@git.apache.org> on 2018/06/06 11:18:01 UTC
[GitHub] spark issue #18900: [SPARK-21687][SQL] Spark SQL should set createTime for H...
Github user cxzl25 commented on the issue:
https://github.com/apache/spark/pull/18900
**Modify the partition will lose createTime.**
Reading the hive partitions ignores createTime when converting the CatalogTablePartition, it will also be lost when modifying partitions.
Calling this method SessionCatalog#alterPartitions will be lost createTime.
So can you reopen this pr? @debugger87
```sql
CREATE TABLE `tmp_test_partition`(
`c1` string
)
PARTITIONED BY (
`d` string
);
ALTER TABLE `tmp_test_partition_1` ADD PARTITION (d='1');
ALTER TABLE `tmp_test_partition_1` PARTITION (d='1') SET LOCATION 'xxx';
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org