Review Board 1.7.22


HIVE-3995 PostgreSQL upgrade scripts are not valid

Review Request #9349 - Created Feb. 7, 2013 and submitted

Jarek Cecho
HIVE-3995
Reviewers
hive
hive
I found issues in three files:

* 010-HIVE-3072.postgres.sql

Just escaping double quotes were missing.

* 011-HIVE-3649.postgres.sql

This alter statement tries to add new "not null" column without any default value. The statement will fail if the table already contains some data. I've checked similar script in mysql/ folder and that script is allowing null values. Thus I've allowed null values also here.

* 012-HIVE-1362.postgres

Just syntax fixes.
I've tested the upgrade scripts by loading file hive-schema-0.9.0.postgres.sql with some data and executing upgrade-0.9.0-to-0.10.0.postgres.sql on top of that.
Total:
1
Open:
0
Resolved:
1
Dropped:
0
Status:
From:
Review request changed
Updated (July 22, 2013, 2:29 p.m.)
  • changed from pending to submitted