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

Fix type inference for Dates; code cleanup#521

Merged
srowen merged 4 commits intodatabricks:masterfrom
srowen:InferDate
Feb 19, 2021
Merged

Fix type inference for Dates; code cleanup#521
srowen merged 4 commits intodatabricks:masterfrom
srowen:InferDate

Conversation

@srowen
Copy link
Copy Markdown
Collaborator

@srowen srowen commented Feb 18, 2021

(This is related to #519 but not its resolution)

@srowen srowen added the bug label Feb 18, 2021
@srowen srowen added this to the 0.12.0 milestone Feb 18, 2021
@srowen srowen self-assigned this Feb 18, 2021
case v if isDouble(v) => DoubleType
case v if isBoolean(v) => BooleanType
case v if isTimestamp(v) => TimestampType
case v if isDate(v) => DateType
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is really the fix; the rest is pretty much code cleanup

@codecov-io
Copy link
Copy Markdown

codecov-io commented Feb 19, 2021

Codecov Report

Merging #521 (ec61b93) into master (f8d200c) will increase coverage by 0.21%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #521      +/-   ##
==========================================
+ Coverage   86.63%   86.85%   +0.21%     
==========================================
  Files          18       18              
  Lines         928      928              
  Branches       81       79       -2     
==========================================
+ Hits          804      806       +2     
+ Misses        124      122       -2     
Impacted Files Coverage Δ
...scala/com/databricks/spark/xml/util/TypeCast.scala 82.85% <85.00%> (+0.16%) ⬆️
...la/com/databricks/spark/xml/util/InferSchema.scala 89.05% <100.00%> (+0.08%) ⬆️
...la/com/databricks/spark/xml/util/XSDToSchema.scala 65.33% <0.00%> (+1.69%) ⬆️

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 f8d200c...ec61b93. Read the comment docs.

@srowen srowen merged commit 0026d9d into databricks:master Feb 19, 2021
@srowen srowen deleted the InferDate branch February 19, 2021 01:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants