Permalink
Browse files

just a bt more description

  • Loading branch information...
1 parent 9c0f972 commit b95c2984a157118a350e325b1d3da8dd459e6a84 @Jae Jae committed Jul 12, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 examples/test.js
View
@@ -1,14 +1,15 @@
hive = require('../node-hive').for({server:"hive.hadoop.forward.co.uk"});
hive.fetch("SELECT * FROM weather_data where dated = '2011-07-01' limit 10", function(err, data) {
+ console.log("SELECT * FROM weather_data where dated = '2011-07-01' limit 10");
data.each(function(record) {
console.log(record);
});
});
var i = 1;
hive.fetchInBatch(100, "SELECT * FROM weather_data where dated = '2011-07-02' limit 1002", function(err, data) {
- console.log("SELECT * FROM weather_data where dated = '2011-07-02'");
+ console.log("SELECT * FROM weather_data where dated = '2011-07-02' limit 1002");
console.log(i++ + "th data:", data.toTSV());
});

0 comments on commit b95c298

Please sign in to comment.