Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ object StructType extends AbstractDataType {
StructType(fields.asScala)
}

protected[sql] def fromAttributes(attributes: Seq[Attribute]): StructType =
private[sql] def fromAttributes(attributes: Seq[Attribute]): StructType =
StructType(attributes.map(a => StructField(a.name, a.dataType, a.nullable, a.metadata)))

def removeMetadata(key: String, dt: DataType): DataType =
private[sql] def removeMetadata(key: String, dt: DataType): DataType =
dt match {
case StructType(fields) =>
val newFields = fields.map { f =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class ParquetFilterSuite extends QueryTest with ParquetTest with SharedSQLContex
}
}

test("Do not push down filters incorrectly when inner name and outer name are the same") {
test("SPARK-16371 Do not push down filters when inner name and outer name are the same") {
Copy link
Member

@HyukjinKwon HyukjinKwon Jul 7, 2016

Choose a reason for hiding this comment

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

Hi @rxin, I am sorry for asking such a question but I couldn't find the documentation for this.

I am sometimes confused if I should add the JIRA number as prefix of a test or not. I am trying to comply this rule which I think is, writing single test requires to add the JIRA number in the test name and writing multiple tests does not (per-PR, per-JIRA).

Is this just encouraged to write this always? If so, I will try to comply this from now on and will help you leave such comments when I happened to look at some other PRs.

(I don't intend to change this across codebase but the main reason why I am asking is, that I don't want to make a such mistake in the future..)

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 think if we are creating a test case and a patch to fix specifically a problem, it'd be good to have that in the name.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you very much.

withParquetDataFrame((1 to 4).map(i => Tuple1(Tuple1(i)))) { implicit df =>
// Here the schema becomes as below:
//
Expand Down