62 | | |
| 62 | * 2008/06/12 |
| 63 | * 根據Hypertable 在Google Code 上wiki 發佈的文件做測試 |
| 64 | * 標題為 HQLTutorial - A brief introduction to Hypertable Query Language (HQL):[http://code.google.com/p/hypertable/wiki/HQLTutorial] |
| 65 | * 發現1: |
| 66 | * 在INSERT & DELETE部份, 他教我們可以插入過去跟未來時間的資料,但是過去時間的資料卻不給插入。 |
| 67 | * hypertable> insert into Pages values ('2006-01-01 23:59:59', "www.hypertable.org", "refer-url", "www.zvents.com"); --> 此指令是不可以使用的 |
| 68 | * 會有這樣的錯誤訊息 Error: Problem sending updates (table=PAGES) - RANGE SERVER supplied timestamp is not strictly increasing |
| 69 | * 經過查證:他說timestamp一般只預設允許系統自動分派,才不會造成混亂。可參考:[http://groups.google.com/group/hypertable-user/browse_thread/thread/da5f987760497811] |
| 70 | * 發現2: |
| 71 | * && TIMESTAMP >= '2008-06-10 09:12:37' && TIMESTAMP <= '2008-06-10 09:12:38' --> TIMESTAMP <= '時間' 的設定條件 並無效用 (答案未明@@) |
| 72 | * |
| 73 | {{{ |
| 74 | hypertable> select "refer-url" from Pages where ROW >= "www.zvents.com/events/buy_tickets/80283482" && ROW <= "www.zvents.com/events/buy_tickets/80310000" && TIMESTAMP >= '2008-06-10 09:12:37' && TIMESTAMP <= '2008-06-10 09:12:38' DISPLAY_TIMESTAMPS; |
| 75 | 2008-06-10 09:12:39.154415952 www.zvents.com/events/buy_tickets/80283482 refer-url www.zvents.com/san-francisco-ca/events/show/80283482-steve-martin |
| 76 | 2008-06-10 09:12:39.154415949 www.zvents.com/events/buy_tickets/80283482 refer-url www.zvents.com/san-francisco-ca/events/show/80283482-steve-martin |
| 77 | 2008-06-10 09:12:37.063994904 www.zvents.com/events/buy_tickets/80283482 refer-url www.zvents.com/san-francisco-ca/events/show/80283482-steve-martin |
| 78 | 2008-06-10 09:12:37.063994907 www.zvents.com/events/buy_tickets/80308810 refer-url www.zvents.com/las-vegas-nv/events/show/80308810-the-platters-coasters-and-the-legendary-lead-singers-of-the-temptations |
| 79 | }}} |
| 80 | * |
| 81 | {{{ |
| 82 | hypertable> select "refer-url" from Pages where ROW >= "www.zvents.com/events/buy_tickets/80283482" && ROW <= "www.zvents.com/events/buy_tickets/80310000" && TIMESTAMP >= '2008-06-10 09:12:38' DISPLAY_TIMESTAMPS; |
| 83 | 2008-06-10 09:12:39.154415952 www.zvents.com/events/buy_tickets/80283482 refer-url www.zvents.com/san-francisco-ca/events/show/80283482-steve-martin |
| 84 | 2008-06-10 09:12:39.154415949 www.zvents.com/events/buy_tickets/80283482 refer-url www.zvents.com/san-francisco-ca/events/show/80283482-steve-martin |
| 85 | }}} |
| 86 | * |
| 87 | {{{ |
| 88 | hypertable> select "refer-url" from Pages where ROW >= "www.zvents.com/events/buy_tickets/80283482" && ROW <= "www.zvents.com/events/buy_tickets/80310000" && TIMESTAMP <= '2008-06-10 09:12:38' DISPLAY_TIMESTAMPS; |
| 89 | 2008-06-10 09:12:39.154415952 www.zvents.com/events/buy_tickets/80283482 refer-url www.zvents.com/san-francisco-ca/events/show/80283482-steve-martin |
| 90 | 2008-06-10 09:12:39.154415949 www.zvents.com/events/buy_tickets/80283482 refer-url www.zvents.com/san-francisco-ca/events/show/80283482-steve-martin |
| 91 | 2008-06-10 09:12:37.063994904 www.zvents.com/events/buy_tickets/80283482 refer-url www.zvents.com/san-francisco-ca/events/show/80283482-steve-martin |
| 92 | 2008-06-10 09:12:37.063994907 www.zvents.com/events/buy_tickets/80308810 refer-url www.zvents.com/las-vegas-nv/events/show/80308810-the-platters-coasters-and-the-legendary-lead-singers-of-the-temptations |
| 93 | }}} |