Skip to content

Conversation

mosfet1kg
Copy link

fixes parameter

@wdavidw
Copy link
Member

wdavidw commented Jul 28, 2017

Could you provide more explanation, what's wrong with the current implementation, if params.batch is undefined or null, it default to "1000" ?

@mosfet1kg
Copy link
Author

I saw batch option at this page. However, it seems that the parameters that finally be sent to server do not include the batch option.

@wdavidw
Copy link
Member

wdavidw commented Jul 28, 2017

Not sure how your pull request could fix anything, please send me an associated test case illustrating the issue

@mosfet1kg
Copy link
Author

params = {};

  params = {};
  if (params.batch == null) {
    params.batch = 1000;
  }

Without a test case, I think I can fully explain. Because params object does not nave batch
property, IF statement doesn't mean anything.
In addition, this.options variable contains attributes for scanner. If you allow users to use batch attribute, I think this value should be imported from here.

@mosfet1kg
Copy link
Author

mosfet1kg commented Sep 2, 2017

Scanner.prototype._read = function(size) {

I don't trust this function because it sometimes behaves oddly.
Therefore, I could not help but implement a logic to get all of record from hbase. At this case, the batch s parameter is very important option.

I would like to say the problem of that function, but I wouldn't comment on it if you might know.

@IDerr
Copy link
Contributor

IDerr commented Mar 13, 2019

@wdavidw Can we close this PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants