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

DM-11419: Allow larger than 2GB offsets in tables - use std::size_t for offsets… #599

Merged
merged 1 commit into from Aug 8, 2021

Conversation

mwittgen
Copy link
Contributor

Use std::size_t for offsets and sizes

Copy link

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good but please check my comments, I think there may be couple more leftover ints.

include/lsst/afw/table/BaseColumnView.h Show resolved Hide resolved
src/table/BaseColumnView.cc Show resolved Hide resolved
include/lsst/afw/table/arrays.h Outdated Show resolved Hide resolved
include/lsst/afw/table/detail/Access.h Show resolved Hide resolved
include/lsst/afw/table/detail/SchemaImpl.h Outdated Show resolved Hide resolved
include/lsst/afw/table/Flag.h Show resolved Hide resolved
include/lsst/afw/table/Key.h Show resolved Hide resolved
include/lsst/afw/table/KeyBase.h Outdated Show resolved Hide resolved
src/table/Schema.cc Show resolved Hide resolved
Comment on lines 32 to 33
self.schema.addField('test1', type='ArrayF', size=370010025)
self.schema.addField('test2', type='ArrayF', size=370010025)

Choose a reason for hiding this comment

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

I guess this covers case when size of two fields is larger than 2GB. Maybe add a case when single field exceeds 2GB too?

@mwittgen mwittgen force-pushed the tickets/DM-11419 branch 2 times, most recently from a773fb9 to db38b56 Compare August 5, 2021 22:41
@mwittgen mwittgen merged commit 2e899d2 into master Aug 8, 2021
@mwittgen mwittgen deleted the tickets/DM-11419 branch August 8, 2021 22:26
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.

None yet

2 participants