Skip to content

[MINOR]Fix Long Type mismatch#29483

Closed
kelvin-qin wants to merge 1 commit intoapache:masterfrom
kelvin-qin:patch-1
Closed

[MINOR]Fix Long Type mismatch#29483
kelvin-qin wants to merge 1 commit intoapache:masterfrom
kelvin-qin:patch-1

Conversation

@kelvin-qin
Copy link

The maximumSize(long size) need long Type param ,but conf.get(config.STORAGE_LOCAL_DISK_BY_EXECUTORS_CACHE_SIZE) return Int Type,So Type mismatch,just fix it.

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

The maximumSize(long size) need long Type params ,but conf.get(config.STORAGE_LOCAL_DISK_BY_EXECUTORS_CACHE_SIZE) return Int Type,So Type mismatch,just fix it.
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@kelvin-qin kelvin-qin changed the title Fix Long Type mismatch [MINOR]Fix Long Type mismatch Aug 20, 2020
@HyukjinKwon
Copy link
Member

I don't think it's worth fixing it. isn't it a legitimate upcasting?

@srowen
Copy link
Member

srowen commented Aug 20, 2020

This doesn't do anything. It's an int conf. Obviously, it works to pass it as a long param.

@srowen srowen closed this Aug 20, 2020
@kelvin-qin kelvin-qin deleted the patch-1 branch August 21, 2020 00:37
@kelvin-qin
Copy link
Author

fine,thank you for closing it .

@kelvin-qin
Copy link
Author

Actually,the conf.get return ConfigEntry[Int] type,This will cause a warning or error message in IDE.

This doesn't do anything. It's an int conf. Obviously, it works to pass it as a long param.

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.

4 participants