[GLUTEN-10774][VL][FOLLOWUP] Strip quotes for osName and osVersion#10850
[GLUTEN-10774][VL][FOLLOWUP] Strip quotes for osName and osVersion#10850PHILO-HE merged 1 commit intoapache:mainfrom
Conversation
|
@yaooqinn @zhztheplayer Could you help to review? The issue is that our OS |
|
Similar issue is repeatable from my end with Ubuntu 24.04 (although we don't have a loader for it). CC @yaooqinn for more insights. If we are making the change maybe we also want to strengthen the |
|
I believe that checking if osName We don't need to use equals for exact matching. In many cases, the system can still run normally on these operating systems even without an exact loader match. |
|
It might be better to handle the returned values read from the system file on the caller side. Quotes might not be the only special character to deal with. |
|
@yaooqinn We can first remove the double quotes as a quick fix to maintain consistency with previous results. I think the vast majority of operating systems will only have either |
What changes are proposed in this pull request?
Follow-up PR for #10774
The content in
/etc/os-releaseis probably in the format of key="value". Previously, when extracting with regular expressions, the double quotes were removed. Currently, usingProperties.loaddoes not remove the double quotes, causing somestartsWithlogic to return false.How was this patch tested?
N/A