Skip to content

Load: create DB in lower-case & truncate null suffix of device ID#13966

Merged
SteveYurongSu merged 4 commits intoapache:masterfrom
DanielWang2035:load-db-lower
Nov 1, 2024
Merged

Load: create DB in lower-case & truncate null suffix of device ID#13966
SteveYurongSu merged 4 commits intoapache:masterfrom
DanielWang2035:load-db-lower

Conversation

@DanielWang2035
Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines 227 to 228
deviceIdArray[realColumnIndex] = device.getSegments()[fileColumnIndex + 1];
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

device.getSegments()[fileColumnIndex + 1] will cause array out of bounds. If a table is defined with an id, when the id of a row is null, the length of device.getSegments() is 1 and the content is only [table], and the null value will not be saved.

@SteveYurongSu SteveYurongSu self-assigned this Oct 31, 2024
@SteveYurongSu SteveYurongSu merged commit 08f221a into apache:master Nov 1, 2024
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.

3 participants