It is working fine if we use trim,but is not required as the above query shows all the records are having same length.
If we create a temp table with create table test1 as select served_number from test;
select count(*) from test1 where served_number='779294936';
+----------+
| count(*) |
+----------+
| 5 |
+----------+
Then it is working fine.
What can be the reson for this problem?
Joined: 19 Dec 2008 01:37:13
Messages: 116
Offline
Hi Sri,
May be your table is partitioned by served_number and partitioning got corrupted.
Queries with conditions like column=constant are optimized and run only on single node, matching the constant.
Queries with LIKE runs on all nodes.
I would recommend to reload data your table:
COPY table TO file
TRUNCATE table
COPY table FROM file