Repository: phoenix
Updated Branches:
  refs/heads/master a56f78ba6 -> 455c1fdb8


PHOENIX-1028 Prevent declaration of non PK columns as NOT NULL


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/455c1fdb
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/455c1fdb
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/455c1fdb

Branch: refs/heads/master
Commit: 455c1fdb827cd8e6a8d4acd7e6e77ea800329190
Parents: a56f78b
Author: James Taylor <jtay...@salesforce.com>
Authored: Sun Jun 8 22:13:31 2014 -0700
Committer: James Taylor <jtay...@salesforce.com>
Committed: Sun Jun 8 22:14:44 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/phoenix/end2end/ToCharFunctionIT.java | 10 +++++-----
 .../org/apache/phoenix/end2end/ToNumberFunctionIT.java    |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/455c1fdb/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java
index 641ddc4..13d6bb7 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java
@@ -67,11 +67,11 @@ public class ToCharFunctionIT extends 
BaseClientManagedTimeIT {
     
     public static final String TO_CHAR_TABLE_DDL = "create table " + 
TO_CHAR_TABLE_NAME +
         "(pk integer not null, \n" + 
-        "col_date date not null, \n" +
-        "col_time date not null, \n" +
-        "col_timestamp timestamp not null, \n" +
-        "col_integer integer not null, \n" + 
-        "col_decimal decimal not null \n" + 
+        "col_date date, \n" +
+        "col_time date, \n" +
+        "col_timestamp timestamp, \n" +
+        "col_integer integer, \n" + 
+        "col_decimal decimal\n" + 
         "CONSTRAINT my_pk PRIMARY KEY (pk))";
 
     @Before

http://git-wip-us.apache.org/repos/asf/phoenix/blob/455c1fdb/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java
index 0fbb23d..b087985 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java
@@ -60,10 +60,10 @@ public class ToNumberFunctionIT extends 
BaseClientManagedTimeIT {
     public static final String TO_NUMBER_TABLE_DDL = "create table " + 
TO_NUMBER_TABLE_NAME +
         "(a_id integer not null, \n" + 
         "a_string char(4) not null, \n" +
-        "b_string char(4) not null, \n" + 
-        "a_date date not null, \n" + 
-        "a_time date not null, \n" + 
-        "a_timestamp timestamp not null \n" + 
+        "b_string char(4), \n" + 
+        "a_date date, \n" + 
+        "a_time date, \n" + 
+        "a_timestamp timestamp \n" + 
         "CONSTRAINT my_pk PRIMARY KEY (a_id, a_string))";
     
     private Date row1Date;

Reply via email to