|
| 1 | +# SAP HANA Batch Source |
| 2 | + |
| 3 | + |
| 4 | +Description |
| 5 | +----------- |
| 6 | + |
| 7 | +Reads from a SAP HANA using a configurable SQL query. |
| 8 | +Outputs one record for each row returned by the query. |
| 9 | + |
| 10 | +Use Case |
| 11 | +-------- |
| 12 | +The source is used whenever you need to read from a SAP HANA. For example, you may want |
| 13 | +to create daily snapshots of a database table by using this source and writing to |
| 14 | +a TimePartitionedFileSet. |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +Properties |
| 19 | +---------- |
| 20 | +**Reference Name:** Name used to uniquely identify this source for lineage, annotating metadata, etc. |
| 21 | + |
| 22 | +**Driver Name:** Name of the JDBC driver to use. |
| 23 | + |
| 24 | +**Host:** Host that SAP HANA is running on. |
| 25 | + |
| 26 | +**Port:** Port that SAP HANA is running on. |
| 27 | + |
| 28 | +**Database:** SAP HANA database name. |
| 29 | + |
| 30 | +**Import Query:** The SELECT query to use to import data from the specified table. |
| 31 | +You can specify an arbitrary number of columns to import, or import all columns using \*. The Query should |
| 32 | +contain the '$CONDITIONS' string. For example, 'SELECT * FROM table WHERE $CONDITIONS'. |
| 33 | +The '$CONDITIONS' string will be replaced by 'splitBy' field limits specified by the bounding query. |
| 34 | +The '$CONDITIONS' string is not required if numSplits is set to one. |
| 35 | + |
| 36 | +**Bounding Query:** Bounding Query should return the min and max of the values of the 'splitBy' field. |
| 37 | +For example, 'SELECT MIN(id),MAX(id) FROM table'. Not required if numSplits is set to one. |
| 38 | + |
| 39 | +**Split-By Field Name:** Field Name which will be used to generate splits. Not required if numSplits is set to one. |
| 40 | + |
| 41 | +**Number of Splits to Generate:** Number of splits to generate. |
| 42 | + |
| 43 | +**Username:** User identity for connecting to the specified database. |
| 44 | + |
| 45 | +**Password:** Password to use to connect to the specified database. |
| 46 | + |
| 47 | +**Connection Arguments:** A list of arbitrary string key/value pairs as connection arguments. These arguments |
| 48 | +will be passed to the JDBC driver as connection arguments for JDBC drivers that may need additional configurations. |
| 49 | + |
| 50 | +**Schema:** The schema of records output by the source. This will be used in place of whatever schema comes |
| 51 | +back from the query. However, it must match the schema that comes back from the query, |
| 52 | +except it can mark fields as nullable and can contain a subset of the fields. |
0 commit comments