Skip to content

Commit 4b6a593

Browse files
committed
Salesforce Wave Read and Salesforce Object read details added
1 parent 4c6cde8 commit 4b6a593

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

README.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Spark Salesforce Wave Library
1+
# Spark Salesforce Library
22

3-
A library for uploading dataframes into Salesforce Wave.
3+
A library for connecting Spark with Salesforce and Salesforce Wave.
44

55
## Requirements
66

@@ -14,25 +14,40 @@ You can link against this library in your program at the following ways:
1414
<dependency>
1515
<groupId>com.springml</groupId>
1616
<artifactId>spark-salesforce-wave_2.10</artifactId>
17-
<version>1.0.0</version>
17+
<version>1.0.4</version>
1818
</dependency>
1919
```
2020

21+
### SBT Dependency
22+
```
23+
libraryDependencies += "com.springml" % "spark-salesforce_2.10" % "1.0.4"
24+
```
2125

2226
## Using with Spark shell
2327
This package can be added to Spark using the `--packages` command line option. For example, to include it when starting the spark shell:
2428

2529
```
26-
$ bin/spark-shell --packages com.springml:spark-salesforce-wave_2.10:1.0.0
30+
$ bin/spark-shell --packages com.springml:spark-salesforce-wave_2.10:1.0.4
2731
```
2832

2933
## Features
30-
This package can be used to create dataset in Salesforce Wave from [Spark DataFrames](https://spark.apache.org/docs/1.3.0/sql-programming-guide.html) to [Salesforce Wave](http://www.salesforce.com/in/analytics-cloud/overview/).
31-
This library requires following options:
32-
* `username`: Salesforce Wave Username. This user should have privilege to upload datasets
34+
* **Dataset Creation** - Create dataset in Salesforce Wave from [Spark DataFrames](http://spark.apache.org/docs/latest/sql-programming-guide.html) to [Salesforce Wave](http://www.salesforce.com/in/analytics-cloud/overview/)
35+
* **Read Salesforce Wave Dataset** User has to provide SAQL to read data from Salesforce Wave. The query will be constructed as dataframe
36+
* **Read Salesforce Object** User has to provide SOQL to read data from Salesforce object. The query result will be constructed as dataframe
37+
38+
### Options
39+
* `username`: Salesforce Wave Username. This user should have privilege to upload datasets or execute SAQL or execute SOQL
3340
* `password`: Salesforce Wave Password. Please append security token along with password.For example, if a user’s password is mypassword, and the security token is XXXXXXXXXX, the user must provide mypasswordXXXXXXXXXX
34-
* `datasetName`: Name of the dataset to be created in Salesforce Wave
35-
* `metadataConfig`: (Optional) Metadata configuration which will be used to construct [Salesforce Wave Dataset Metadata] (https://resources.docs.salesforce.com/sfdc/pdf/bi_dev_guide_ext_data_format.pdf). Metadata configuration has to be provided in JSON format.
41+
* `login`: (Optional) Salesforce Login URL. Default value https://login.salesforce.com
42+
* `datasetName`: (Optional) Name of the dataset to be created in Salesforce Wave. Required for Dataset Creation
43+
* `metadataConfig`: (Optional) Metadata configuration which will be used to construct [Salesforce Wave Dataset Metadata] (https://resources.docs.salesforce.com/sfdc/pdf/bi_dev_guide_ext_data_format.pdf). Metadata configuration has to be provided in JSON format
44+
* `saql`: (Optional) SAQL query to used to query Salesforce Wave. Mandatory for reading Salesforce Wave dataset
45+
* `soql`: (Optional) SOQL query to used to query Salesforce Object. Mandatory for reading Salesforce Object like Opportunity
46+
* `version`: (Optional) Salesforce API Version. Default 35.0
47+
* `inferSchema`: (Optional) Inferschema from the query results. Sample rows will be taken to find the datatype
48+
* `resultVariable`: (Optional) result variable used in SAQL query. To paginate SAQL queries this package will add the required offset and limit. For example, in this SAQL query `q = load \"<dataset_id>/<dataset_version_id>\"; q = foreach q generate 'Name' as 'Name', 'Email' as 'Email';` **q** is the result variable
49+
* `pageSize`: (Optional) Page size for each query to be executed against Salesforce Wave. Default value is 2000. This option can only be used if `resultVariable` is set
50+
3651

3752

3853
### Scala API

0 commit comments

Comments
 (0)