Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

animeshtrivedi
Copy link
Member

No description provided.

Copy link

@PepperJo PepperJo left a 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

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

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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird parameter spacing!?

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.

2 participants