-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add Salesforce JDBC Connector #2548
Closed
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
bf6f0ae
Add Salesforce JDBC Connector
pgagnon 8a5f153
Implement credentials provisioning through catalog properties in Sale…
pgagnon beddacb
Implement wasNull in Salesforce JDBC driver
pgagnon e060ed9
Remove extraneous credentialsConfig binding
pgagnon 7341c8d
Remove presto-salesforce from development config.properties default p…
pgagnon c92216c
Update presto-salesforce/pom.xml to version 330-SNAPSHOT
pgagnon 122c378
Remove ForceSoapValidator
pgagnon 126cabb
Rename ParameterMetadataImpl to ForceParameterMetadata
pgagnon 860c3be
Modify ForceResultField hash and equals methods to use Objects functions
pgagnon 2ec0fe1
Make name and type fields mandatory
pgagnon b7d5938
Make FieldDef hash and equals methods take advantage of Objects funct…
pgagnon 770ea1c
Add salesforce.fetch-size configuration parameter
pgagnon 31887d8
Improve module configuration code
pgagnon 3c4d993
Update pom.xml to 331-SNAPSHOT
pgagnon d96c082
Fix checkstyle errors
pgagnon 4a34b34
Remove unused argument from getConnectionFactory
pgagnon 4075dc7
Add rudimentary documentation for salesforce connector
pgagnon ea7cf96
Resolve review comments in ForceConnection
pgagnon 48da5bb
Remove unused import in SalesforceClientModule
pgagnon 72ced05
Add explicit constructor to ForceConnectionInfo
pgagnon 874f600
Throw on usage of unimplemented JDBC methods
pgagnon 4b07cd7
Remove dead code related to caching
pgagnon 8f3f0ee
Update pom.xml to version 339-SNAPSHOT
pgagnon 50d238c
Migrate to objectMapping instead of blockMapping
pgagnon f37a406
Fix timezone handling in convertToSoqlParam
pgagnon 864d465
Fix docs snafu
pgagnon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
==================== | ||
Salesforce Connector | ||
==================== | ||
|
||
The Salesforce connector allows querying and creating tables in an | ||
external Salesforce instance. This can be used to join data between | ||
different systems like Salesforce and Hive, or between two different | ||
Salesforce instances. | ||
|
||
Configuration | ||
------------- | ||
|
||
To configure the Salesforce connector, create a catalog properties file | ||
in ``etc/catalog`` named, for example, ``salesforce.properties``, to | ||
mount the Salesforce connector as the ``salesforce`` catalog. | ||
Create the file with the following contents, replacing the | ||
connection properties as appropriate for your setup: | ||
|
||
.. code-block:: none | ||
|
||
connector.name=salesforce | ||
connection-url=jdbc:salesforce:// | ||
connection-user=admin | ||
connection-password=secret | ||
salesforce.security-token=abc | ||
|
||
Querying Salesforce | ||
------------------- | ||
|
||
The Salesforce connector provides single a schema named ``salesforce``. | ||
|
||
SHOW TABLES FROM salesforce.salesforce; | ||
|
||
You can see a list of the columns in the ``account`` table in the ``salesforce`` database | ||
using either of the following:: | ||
|
||
DESCRIBE salesforce.salesforce.account; | ||
SHOW COLUMNS FROM salesforce.salesforce.account; | ||
|
||
Finally, you can access the ``account`` table:: | ||
|
||
SELECT * FROM salesforce.salesforce.account; | ||
|
||
If you used a different name for your catalog properties file, use | ||
that catalog name instead of ``salesforce`` in the above examples. | ||
|
||
Salesforce Connector Limitations | ||
-------------------------------- | ||
|
||
At this time this connector is read-only. Furthermore, it fetches data | ||
using the Salesforce synchronous API, which offers limited performance. | ||
|
||
Queries on the information schema can be especially expensive. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we implement it as a separate commit