Skip to content

ARROW-3674: [Go] Implement Date32 and Date64 array types#3170

Closed
dustmop wants to merge 2 commits into
apache:masterfrom
dustmop:date-types
Closed

ARROW-3674: [Go] Implement Date32 and Date64 array types#3170
dustmop wants to merge 2 commits into
apache:masterfrom
dustmop:date-types

Conversation

@dustmop

@dustmop dustmop commented Dec 13, 2018

Copy link
Copy Markdown
Contributor

Implement both Date32 and Date64 types for arrays. Also resolves ARROW-3675. Unit tests follow the same pattern as the existing float64 and Time{32,64} tests.

Implement both Date32 and Date64 types for arrays. Also resolves
ARROW-3675. Unit tests follow the same pattern as the existing float64
and Time{32,64} tests.
@codecov-io

codecov-io commented Dec 13, 2018

Copy link
Copy Markdown

Codecov Report

Merging #3170 into master will decrease coverage by 19.22%.
The diff coverage is 65.85%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #3170       +/-   ##
===========================================
- Coverage   87.09%   67.87%   -19.23%     
===========================================
  Files         495       58      -437     
  Lines       69704     4012    -65692     
===========================================
- Hits        60708     2723    -57985     
+ Misses       8897     1186     -7711     
- Partials       99      103        +4
Impacted Files Coverage Δ
go/arrow/datatype_fixedwidth.go 12.5% <ø> (ø) ⬆️
go/arrow/datatype_numeric.gen.go 41.66% <0%> (-8.34%) ⬇️
go/arrow/type_traits_numeric.gen.go 13% <0%> (-2%) ⬇️
go/arrow/array/array.go 96.72% <100%> (+0.11%) ⬆️
go/arrow/array/numeric.gen.go 46.9% <50%> (+0.47%) ⬆️
go/arrow/array/numericbuilder.gen.go 68.16% <92.95%> (+3.81%) ⬆️
go/arrow/math/float64_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/memory/memory_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/int64_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/uint64_sse4_amd64.go 0% <0%> (-100%) ⬇️
... and 442 more

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 e34057c...29ae274. Read the comment docs.

@sbinet sbinet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@dustmop

dustmop commented Dec 13, 2018

Copy link
Copy Markdown
Contributor Author

Thanks @sbinet for taking a look, and linking the other JIRA ticket. Given that I don't have write access, is there anything else I need to do to get this merged?

@sbinet

sbinet commented Dec 13, 2018

Copy link
Copy Markdown
Contributor

I'd like to wait for another pair of eyes :)
@stuartcarnie and/or @alexandreyc for example.

@dustmop

dustmop commented Dec 13, 2018

Copy link
Copy Markdown
Contributor Author

Sounds good, thanks!

Comment thread go/arrow/numeric.tmpldata Outdated
"Default": "0",
"Size": "8",
"Opt": {
"Parametric": true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ditto.

Comment thread go/arrow/numeric.tmpldata Outdated
"Default": "0",
"Size": "4",
"Opt": {
"Parametric": true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AFAIK, they're not parametric.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, there's only a single Date32 unit (same as Date64).

However, when I remove this, the generated code in numericbuilder.gen.go uses arrow.PrimitiveTypes.Date32 within the function Date32Builder.newData, but Date32 isn't added to PrimitiveTypes in datatype_numeric.gen.go. Is this a bug in the generator or is there something else I need to add? Are both "QualifiedType" and "InternalType" meant to stay?

@dustmop

dustmop commented Dec 14, 2018

Copy link
Copy Markdown
Contributor Author

Ok, I figured it out. Should I squash these commits into one, or keep as it?

@wesm

wesm commented Dec 14, 2018

Copy link
Copy Markdown
Member

No need to squash

@wesm

wesm commented Dec 14, 2018

Copy link
Copy Markdown
Member

@sbinet or @stuartcarnie any final words about this one? I'll merge in a day or two if I don't hear back

@sbinet sbinet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@stuartcarnie

Copy link
Copy Markdown
Contributor

Looks great to me, too 👌

@wesm wesm closed this in a236464 Dec 17, 2018
@dustmop dustmop deleted the date-types branch December 17, 2018 16:14
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.

6 participants