Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Conversation

@BioQwer
Copy link
Contributor

@BioQwer BioQwer commented Aug 1, 2018

fix #316

@codecov-io
Copy link

codecov-io commented Nov 25, 2018

Codecov Report

Merging #321 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #321   +/-   ##
=====================================
  Coverage       0%     0%           
=====================================
  Files          14     14           
  Lines         744    753    +9     
  Branches       54     61    +7     
=====================================
- Misses        744    753    +9
Impacted Files Coverage Δ
...cala/com/databricks/spark/xml/XmlInputFormat.scala 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6aefda...f292b9a. Read the comment docs.

@BioQwer
Copy link
Contributor Author

BioQwer commented Nov 25, 2018

@HyukjinKwon I fixed this bug
fix #316
merge this plz

@BioQwer
Copy link
Contributor Author

BioQwer commented Dec 18, 2018

@srowen can your review this bug fix?

# Conflicts:
#	src/test/scala/com/databricks/spark/xml/XmlSuite.scala
Copy link
Collaborator

@srowen srowen left a comment

Choose a reason for hiding this comment

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

I think we'd need substantially a different change here, but I'll consider the issue

override def createRecordReader(
split: InputSplit,
context: TaskAttemptContext): RecordReader[LongWritable, Text] = {
split: InputSplit,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Likewise this needs to be reverted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't revert this change, because goal scalacheckstyle will fail on it.

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

The line isn't too long if you don't add the deep continuation indent. The code passed style checks before.

buffer: DataOutputBuffer): Boolean = {
def checkStartTagBefore = {
val buf = Seq('<'.toByte)
val rootTagName = buffer.getData
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why define a method here?
I don't think this is efficient enough as it makes a few copies of much of the buffer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it's used only here.

I don't think this is efficient enough as it makes a few copies of much of the buffer.

maybe, but this code run only in rare situations
code in buffet not so easy to read

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let me think about it and maybe try a different approach. I think we just need to look for a self-close tag that can only come before any other tag close.

Copy link
Collaborator

Choose a reason for hiding this comment

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

(BTW here I meant, why define a method at all? it's only used here, as you say)

@srowen srowen closed this Dec 19, 2018
@srowen srowen reopened this Dec 19, 2018
@srowen
Copy link
Collaborator

srowen commented Dec 19, 2018

(Wrong PR, this is the one I mean I'll resolve differently now that I merged the other fix)

@srowen
Copy link
Collaborator

srowen commented Dec 20, 2018

This should be fixed by #352

@srowen srowen closed this Dec 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants