Skip to content

[Backport] Fix num_rows in sys.segments (#6888)#7054

Merged
jihoonson merged 1 commit intoapache:0.14.0-incubatingfrom
surekhasaharan:backport-6888-to-0.14.0-incubating
Feb 12, 2019
Merged

[Backport] Fix num_rows in sys.segments (#6888)#7054
jihoonson merged 1 commit intoapache:0.14.0-incubatingfrom
surekhasaharan:backport-6888-to-0.14.0-incubating

Conversation

@surekhasaharan
Copy link
Copy Markdown

@surekhasaharan surekhasaharan commented Feb 12, 2019

Backport of #6888 to 0.14.0-incubating

* Fix the bug with num_rows in sys.segments

* Fix segmentMetadataInfo update in DruidSchema
* Add numRows to SegmentMetadataHolder builder's constructor, so it's not overwritten
* Rename SegSegmentSignature to setSegmentMetadataHolder and fix it so nested map is appended instead of recreated
* Replace Map<String, Set<String>> segmentServerMap with Set<String> for num_replica

* Remove unnecessary code and update test

* Add unit test for num_rows

* PR comments

* change access modifier to default package level

* minor changes to comments

* PR comments
@surekhasaharan surekhasaharan changed the title Fix num_rows in sys.segments (#6888) [Backport] Fix num_rows in sys.segments (#6888) Feb 12, 2019
@fjy fjy added this to the 0.14.0 milestone Feb 12, 2019
@jihoonson jihoonson merged commit f127cc2 into apache:0.14.0-incubating Feb 12, 2019
@surekhasaharan surekhasaharan deleted the backport-6888-to-0.14.0-incubating branch February 20, 2019 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants