Improve string to timestamp performance.

This commit is contained in:
Michael Ubell
2012-09-19 23:46:53 -07:00
committed by Henry Robinson
parent 6136e2f9c1
commit d0dd13053a
10 changed files with 445 additions and 68 deletions

View File

@@ -1,5 +1,8 @@
select * from hbasealltypeserror
---- ERRORS
Error converting column strings:timestamp_col: '0' TO TIMESTAMP
hbase table: hbasealltypeserror
row key: 0
Error converting column bools:bool_col: 'errfalse' TO BOOL
hbase table: hbasealltypeserror
row key: 1
@@ -58,24 +61,24 @@ file: hbasealltypeserror,15
---- TYPES
int, boolean, double, float, bigint, int, smallint, tinyint, string, string, timestamp
---- RESULTS
0,NULL,0,0,0,0,0,NULL,'01/01/09','0',00:00:00
1,NULL,10.1,1,10,1,1,NULL,'01/01/09','1',1999-10-10
0,NULL,0,0,0,0,0,NULL,'01/01/09','0',NULL
1,NULL,10.1,1,10,1,1,NULL,'01/01/09','1',1999-10-10 00:00:00
10,NULL,0,0,0,0,NULL,NULL,'02/01/09','0',2009-01-01 00:00:00
11,false,10.1,1,10,NULL,NULL,NULL,'02/01/09','1',2009-01-01 00:00:00
12,true,20.2,2,NULL,NULL,NULL,2,'02/01/09','2',2009-01-01 00:00:00
13,false,NULL,NULL,NULL,NULL,3,3,'02/01/09','3',2009-01-01 00:00:00
14,true,NULL,NULL,40,4,4,4,'02/01/09','4',2009-01-01 00:00:00
15,false,50.5,5,50,5,5,NULL,'02/01/09','5',NULL
16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'02/01/09','6',00:00:00
16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'02/01/09','6',NULL
17,false,NULL,7,70,7,7,7,'02/01/09','7',2009-01-01 00:00:00
18,true,80.8,8,80,8,8,8,'02/01/09','8',2009-01-01 00:00:00
19,false,90.90000000000001,9,90,9,9,9,'02/01/09','9',2009-01-01 00:00:00
2,true,20.2,2,20,2,NULL,NULL,'01/01/09','2',1999-10-13 18:10:10
2,true,20.2,2,20,2,NULL,NULL,'01/01/09','2',NULL
20,true,0,0,0,0,0,0,'03/01/09','0',2020-10-10 10:10:10.123000000
21,false,10.1,1,10,1,1,1,'03/01/09','1',NULL
22,true,20.2,2,20,2,2,2,'03/01/09','2',NULL
23,false,30.3,3,30,3,NULL,3,'03/01/09','3',2020-10-12 12:10:10.123000000
24,true,40.4,4,40,4,4,4,'03/01/09','4',2020-10-10 11:10:10.123000000
23,false,30.3,3,30,3,NULL,3,'03/01/09','3',NULL
24,true,40.4,4,40,4,4,4,'03/01/09','4',NULL
25,false,50.5,5,50,NULL,5,5,'03/01/09','5',2020-10-10 10:10:10.123000000
26,true,60.6,6,60,6,6,6,'03/01/09','6',2020-10-10 10:10:10.123000000
27,false,70.7,7,70,7,7,NULL,'03/01/09','7',2020-10-10 10:10:10.123000000
@@ -168,11 +171,11 @@ int, boolean, double, float, bigint, int, smallint, tinyint, string, string, tim
22,true,20.2,2,20,2,2,2,'03/01/09','2',2012-03-22 11:20:01.123000000
23,false,30.3,3,30,3,NULL,3,'03/01/09','3',2012-03-22 11:20:01.123000000
24,true,40.4,4,40,4,4,4,'03/01/09','4',2012-03-22 11:20:01.123000000
25,false,50.5,5,50,NULL,5,5,'03/01/09','5',2012-03-22 11:20:01.123000000
25,false,50.5,5,50,NULL,5,5,'03/01/09','5',NULL
26,true,60.6,6,60,6,6,6,'03/01/09','6',2012-03-22 11:20:01.123000000
27,false,70.7,7,70,7,7,NULL,'03/01/09','7',2012-03-22 11:20:01.123000000
28,true,80.8,8,80,8,8,8,'03/01/09','8',NULL
29,false,90.90000000000001,9,90,NULL,9,9,'03/01/09','9',2012-03-22
29,false,90.90000000000001,9,90,NULL,9,9,'03/01/09','9',2012-03-22 00:00:00
3,false,30.3,3,30,3,NULL,3,'01/01/09','3',2012-03-22 11:20:01.123000000
4,true,40.4,4,40,NULL,4,4,'01/01/09','4',2012-03-22 11:20:01.123000000
5,false,50.5,5,NULL,5,5,5,'01/01/09','5',2012-03-22 11:20:01.123000000
@@ -180,4 +183,4 @@ int, boolean, double, float, bigint, int, smallint, tinyint, string, string, tim
7,false,NULL,7,70,7,7,7,'01/01/09','7',2012-03-22 11:20:01.123000000
8,false,80.8,8,80,8,8,8,'01/01/09','8',2012-03-22 11:20:01.123000000
9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'01/01/09','9',2012-03-22 11:20:01.123000000
====
====