Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Conversation

piffall
Copy link

@piffall piffall commented Apr 10, 2019

In DataFrameReaderFunctions there is an unusable method method if DataFrame is wanted instead of Streaming DataFrame with this signature: def cosmosDB(schema: StructType, readConfig: Config, sqlContext: SQLContext): DataFrame

This calls a private method that should receive an Option[SQLContext] argument, but it's not possible when using Some(null), because this will create a Some[Null] type value. To fix this, Option(sqlContext) is used instead of Some(sqlContext) in order to pass a None value. Other Optionals are changed too.

This PR should be cherry-picked to 2.3 branch. Branches 2.2 and 2.1 are not affected.

@msftclas
Copy link

msftclas commented Apr 10, 2019

CLA assistant check
All CLA requirements met.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants