suxiaogang223 opened a new pull request, #37638:
URL: https://github.com/apache/doris/pull/37638
## Proposed changes
When hive reads the text table, it will first try to parse "field.delim"
into Byte type. If it fails, it will take the first character as Byte. If
"field.delim" is not set, use the same method to parse "serialization.format".
```java
separatorCandidates.add(LazyUtils.getByte(tableProperties.getProperty(serdeConstants.FIELD_DELIM,
tableProperties.getProperty(serdeConstants.SERIALIZATION_FORMAT)),
DefaultSeparators[0]));
...
public static byte getByte(String altValue, byte defaultVal) {
if (altValue != null && altValue.length() > 0) {
try {
return Byte.parseByte(altValue);
} catch (NumberFormatException e) {
return (byte) altValue.charAt(0);
}
}
return defaultVal;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]