Skip to content

Commit 4bd1d50

Browse files
authored
Merge pull request #52 from marklogic/feature/ml-version
Updated minimum versions
2 parents 3c3d39b + aef3fc1 commit 4bd1d50

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ reading data from and writing data to MarkLogic.
1010
The connector has the following system requirements:
1111

1212
* Apache Spark 3.4.0 or higher; earlier versions of Spark 3.x may work but have not been tested.
13-
* For writing data, MarkLogic 9 or higher.
14-
* For reading data, MarkLogic 10.0-6 or higher.
13+
* For writing data, MarkLogic 9.0-9 or higher.
14+
* For reading data, MarkLogic 10.0-9 or higher.
1515

1616
Please see the [Getting Started guide](getting-started/getting-started.md) to begin using the connector.

src/main/java/com/marklogic/spark/DefaultSource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public StructType inferSchema(CaseInsensitiveStringMap options) {
5454
RowManager rowManager = new ContextSupport(caseSensitiveOptions).connectToMarkLogic().newRowManager();
5555
RawQueryDSLPlan dslPlan = rowManager.newRawQueryDSLPlan(new StringHandle(query));
5656
try {
57+
// columnInfo is what forces a minimum MarkLogic version of 10.0-9 or higher.
5758
StringHandle columnInfoHandle = rowManager.columnInfo(dslPlan, new StringHandle());
5859
return SchemaInferrer.inferSchema(columnInfoHandle.get());
5960
} catch (Exception ex) {

0 commit comments

Comments
 (0)