Make sense! Thanks. Pushed a new commit that should leave numParitions default value to Scala implementation.