-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulling in changes which were developed during the file format development. #2
base: master
Are you sure you want to change the base?
Conversation
Moving to while eliminate range object generation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments. Otherwise lgtm.
affixByteArray(random.nextInt(size)) = random.nextPrintableChar().toByte | ||
/* now we copy affix array */ | ||
Array.copy(affixByteArray, 0, toReturn, 0, size) | ||
this.baseRandomArray(ThreadLocalRandom.current().nextInt(toCopy)) = scalaRandom.nextPrintableChar().toByte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if we randomly get the same byte? shouldn't we try until it changes?
} | ||
/* just randomly change 1 byte - this is to make sure parquet | ||
* does not ignore the data - char will be casted to byte */ | ||
affixByteArray(random.nextInt(size)) = random.nextPrintableChar().toByte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
val inputRDD = spark.sparkContext.parallelize(0 until options.getTasks, options.getTasks) | ||
require(rowsPerTask <= Integer.MAX_VALUE) | ||
if(options.getClassName.equalsIgnoreCase("ParquetExample")){ | ||
doParquetExample(spark, inputRDD, rowsPerTask.toInt, options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird parameter spacing!?
No description provided.