Skip to content

index fields by name, original name, and full name#3114

Merged
sougou merged 3 commits intovitessio:masterfrom
HubSpot:field-map-indexes-upstream
Sep 30, 2017
Merged

index fields by name, original name, and full name#3114
sougou merged 3 commits intovitessio:masterfrom
HubSpot:field-map-indexes-upstream

Conversation

@acharis
Copy link
Copy Markdown
Contributor

@acharis acharis commented Aug 25, 2017

like mysql-connector-j does

@bbeaudreault @harshit-gangal

Copy link
Copy Markdown
Contributor

@bbeaudreault bbeaudreault left a comment

Choose a reason for hiding this comment

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

Add some tests for this please

if (!labelMap.containsKey(columnLabel)) {
labelMap.put(columnLabel, columnIndex);
}
String origName = field.getOrgName();
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.

the Field may not have these extra values. This is the case when IncludedFields != ALL. So I would check whether the value is null/empty before doing the extra map work and such. Same goes for both new maps.

@acharis
Copy link
Copy Markdown
Contributor Author

acharis commented Sep 26, 2017

@sougou @bbeaudreault i got around to adding a test to this, i think we're ready.
(what's netlify?)

@derekperkins
Copy link
Copy Markdown
Member

Netlify is for automated deployment of vitess.io. We're still working on it, so you can ignore it for now.

@bbeaudreault
Copy link
Copy Markdown
Contributor

LGTM

@sougou sougou merged commit 9f30997 into vitessio:master Sep 30, 2017
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.

5 participants