这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@smola
Copy link
Contributor

@smola smola commented Jun 18, 2018

  • A new private package compat is added with compatibility shims.

  • Shims for apply/unapply on LogicalRelation are added with compatibility
    with Spark 2.2.x and 2.3.x.

  • If an unsupported Spark version is used, a human-readable exception is thrown.

@smola smola requested a review from ajnavarro June 18, 2018 13:04
@smola
Copy link
Contributor Author

smola commented Jun 18, 2018

Ideally we would add a test build on Travis with Spark 2.3.x.

Copy link
Contributor

@ajnavarro ajnavarro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to add travis 2.3.x execution on this PR too.


def apply[T](s22: T, s23: T): T = SPARK_VERSION match {
case s if s.startsWith("2.2.") => s22
case s if s.startsWith("2.3.") => s23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use complete versions? I think we needed to change some internal call to move from 2.2.0 to 2.2.1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind, It was moving from 2.1.x to 2.2.x

@smola
Copy link
Contributor Author

smola commented Jun 19, 2018

@ajnavarro 👍 Let's not merge this until proper CI is in place.

@bzz
Copy link
Contributor

bzz commented Jun 22, 2018

Great! Just sharing, in case this example of CI from Gemini, that can be used with different Spark versions could help here.

smola added 2 commits July 2, 2018 15:18
- A new private package `compat` is added with compatibility shims.

- Shims for apply/unapply on LogicalRelation are added with compatibility
  with Spark 2.2.x and 2.3.x.

- If an unsupported Spark version is used, a human-readable exception is thrown.

Signed-off-by: Santiago M. Mola <santiago@sourced.tech>
- Test Apache Spark 2.2.1 and 2.3.1 on Travis.
- Use stage builds.

Signed-off-by: Santiago M. Mola <santiago@sourced.tech>
@smola
Copy link
Contributor Author

smola commented Jul 2, 2018

Added CI (migrated to Travis Build Stages).

@ajnavarro ajnavarro merged commit 9a85664 into src-d:master Jul 2, 2018
@smola smola deleted the spark-versions branch July 2, 2018 16:10
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.

3 participants