Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleans up deprecated APIs #1

Closed
wants to merge 4 commits into from

Conversation

liancheng
Copy link
Owner

This PR branch forks from databricks#221. A formal PR targets to databricks/spark-redshift master branch will be created after databricks#221 is merged.

This PR cleans up all the deprecated APIs in 1.x:

  • Parameters.overwrite

    Users should use SaveMode instead.

  • SchemaParser

    Removed since the only API method uses this class is removed.

  • RedshiftDataFrame.saveAsRedshiftTable(parameters: Map[String, String])

    Users should use DataFrameWriter methods instead.

  • RedshiftContext.redshiftTable(parameters: Map[String, String])

    Users should use DataFrameReader methods instead.

  • RedshiftContext.redshiftFile(path: String, schema: String)

    Removed since we'd like to stop using string schema parsing. The following API method is added to replace it:

    def redshiftFile(path: String, schema: StructType): DataFrame

liancheng and others added 4 commits July 17, 2016 11:22
This PR migrates spark-redshift to Spark 2.0.

It is marked as WIP because it depends on databricks/spark-avro#137.

Author: Cheng Lian <lian@databricks.com>

Closes databricks#221 from liancheng/spark-2.0-migration.
Author: Marc-André Tremblay <marcandre.tr@gmail.com>

This patch had conflicts when merged, resolved by
Committer: Josh Rosen <joshrosen@databricks.com>

Closes databricks#220 from marctrem/custom-jdbc-column-types.
@liancheng liancheng force-pushed the delete-deprecated-api branch from 54000ec to 77c2838 Compare July 18, 2016 04:18
@liancheng
Copy link
Owner Author

Closing this since the formal PR has been sent (databricks#239).

@liancheng liancheng closed this Jul 18, 2016
JoshRosen pushed a commit to databricks/spark-redshift that referenced this pull request Jul 18, 2016
This PR branch is based on #221 and contains its changes. For easier review, please refer to liancheng#1.

This PR cleans up all the deprecated APIs in 1.x:

- `Parameters.overwrite`

  Users should use `SaveMode` instead.

- `SchemaParser`

  Removed since the only API method uses this class is removed.

- `RedshiftDataFrame.saveAsRedshiftTable(parameters: Map[String, String])`

  Users should use `DataFrameWriter` methods instead.

- `RedshiftContext.redshiftTable(parameters: Map[String, String])`

  Users should use `DataFrameReader` methods instead.

- `RedshiftContext.redshiftFile(path: String, schema: String)`

  Removed since we'd like to stop using string schema parsing. The following API method is added to replace it:

  ```scala
  def redshiftFile(path: String, schema: StructType): DataFrame
  ```

Fixes #66.

Author: Cheng Lian <lian@databricks.com>

Closes #239 from liancheng/delete-deprecated-api.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants