Update spark core code