Skip to content

Conversation

@radford1
Copy link

What changes were proposed in this pull request?

Adding Apache Drill to the JDBC Dialect

How was this patch tested?

I tested this manually by building and using RStudio to connect to the spark server and running a query against an apache drill cluster

the contribution is my original work and that I license the work to the project under the project’s open source license
Please review http://spark.apache.org/contributing.html before opening a pull request.

@radford1
Copy link
Author

I'm very new to this but was just wondering if there is anything else I should do to help with this pull request or does it just take more time?

@SparkQA
Copy link

SparkQA commented Jul 14, 2017

Test build #3842 has finished for PR 18607 at commit 6d6e2d7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gatorsmile
Copy link
Member

Could you also add the docker-based test suite, like what we did in https://github.com/apache/spark/pull/9893/files?


package org.apache.spark.sql.jdbc

import java.sql.Types
Copy link
Member

Choose a reason for hiding this comment

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

Do we use this import?


import java.sql.Types

import org.apache.spark.sql.types.{BooleanType, DataType, LongType, MetadataBuilder}
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

Copy link
Author

Choose a reason for hiding this comment

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

These imports are not used, I will remove them. I'll also look at adding the docker tests suggested by @gatorsmile

@radford1
Copy link
Author

radford1 commented Aug 3, 2017

@viira can you review for me again please

@radford1 radford1 closed this Aug 3, 2017
@radford1 radford1 reopened this Aug 3, 2017
@viirya
Copy link
Member

viirya commented Aug 3, 2017

@radford1 Have you added the test as suggested by @gatorsmile?

@radford1
Copy link
Author

radford1 commented Aug 7, 2017

@viirya I have not had a chance to build out the docker tests like @gatorsmile suggested. Will that be a requirement in order to merge it?

@gatorsmile
Copy link
Member

@radford1 Yes. That is needed for merging this PR. Could you check it? Thanks!

@rxin
Copy link
Contributor

rxin commented Aug 7, 2017

Unfortunately I think drill is not popular enough to warrant inclusion in here yet. If this is not extensible, we should make it possible to include such mappings outside Spark and then perhaps Drill can just package this (or any 3rd party on github).

@radford1
Copy link
Author

radford1 commented Aug 8, 2017

@gatorsmile Understood I'll work on including them.
@rxin can you help me understand this better? I was trying to add this so spark could call Drill through jdbc. How can we include these mappings outside of spark?

@rxin
Copy link
Contributor

rxin commented Aug 8, 2017

We can just put this code in a 3rd party library, can't we? If there is an issue with service/code discovery, we can come up with some sort of registration process similar to the data source API.

@gatorsmile
Copy link
Member

Could we please close this PR? Thanks!

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.

5 participants