Skip to content

Commit 56a6f0c

Browse files
Merge pull request mendix#9158 from SurabhiSaraf/UpdateEDB
Modification to External Database Connector documentation
2 parents dcf4064 + 3d0af22 commit 56a6f0c

4 files changed

Lines changed: 40 additions & 8 deletions

File tree

content/en/docs/appstore/use-content/platform-supported-content/modules/database-connector-mx10.md

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,21 @@ Then, use the parameter in the query:
123123

124124
`select * from customers where contactFirstName like {paramFirstName}`
125125

126-
{{% alert color="info" %}}
127-
If you need to pass a list of values to a parameter, you can use the following approach:
126+
To pass a list of values to a parameter, you can use the following approach:
128127

129-
`WITH empids AS (
130-
SELECT empid FROM json_table( {EmpIdList}, '$[*]' columns ( empid number path '$' ))
128+
```sql
129+
WITH empids AS (
130+
SELECT empid
131+
FROM json_table({EmpIdList}, '$[*]' columns (empid number PATH '$'))
131132
)
132133
SELECT *
133-
FROM emp WHERE empno IN (SELECT empid FROM empids);`
134+
FROM emp
135+
WHERE empno IN
136+
(SELECT empid
137+
FROM empids);
138+
```
134139

135-
where parameter `EmpIdList` is of type String with the value `[1,7946,3,4,7942,7943,7945]`.
136-
{{% /alert %}}
140+
Here, the parameter `EmpIdList` is of type String with the value `[1,7946,3,4,7942,7943,7945]`.
137141

138142
### Using Query Response {#use-query-response}
139143

@@ -276,3 +280,31 @@ Execute queries as you would with supported databases, and retrieve responses in
276280
{{% alert color="info" %}}
277281
By default, autocommit is set to false for design time queries.
278282
{{% /alert %}}
283+
284+
### Resolving Dependency Issues with Apache Arrow on JDK 17 or 21
285+
286+
When using JDK versions 17 or 21 (or any version above 16), you may encounter compatibility issues if database you are connecting to has a dependency on Apache Arrow.
287+
288+
#### To resolve Apache Arrow dependency issue in Snowflake:
289+
290+
The Snowflake JDBC Driver uses Arrow as the default result format for query execution to improve performance. However, you can override this default setting by switching the result format to JSON.
291+
292+
To set the result format at the Snowflake session or user level, use the following SQL statement:
293+
294+
```sql
295+
**ALTER USER <user_name> SET JDBC_QUERY_RESULT_FORMAT='JSON';**
296+
```
297+
298+
This approach ensures compatibility with JDK 16+.
299+
[For more details](https://community.snowflake.com/s/article/Getting-java-lang-NoClassDefFoundError-for-class-RootAllocator).
300+
301+
#### To resolve Apache Arrow dependency issue in Databricks:
302+
303+
The Databricks JDBC Driver uses Arrow for serialization as it improves performance.
304+
305+
To override this setting add below parameter to JDBC URL
306+
307+
```sql
308+
EnableArrow=0
309+
```
310+
[For more details](https://community.databricks.com/t5/data-engineering/java-21-support-with-databricks-jdbc-driver/td-p/49297)

content/en/docs/appstore/use-content/platform-supported-content/modules/snowflake/snowflake-edc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ To set the result format at the Snowflake session or user level, use the followi
164164
**ALTER USER <user_name> SET JDBC_QUERY_RESULT_FORMAT='JSON';**
165165
```
166166
167-
This approach ensures compatibility with JDK 16+.
167+
This approach ensures compatibility with JDK 16+. For more information, see [JDBC Driver throws NoClassDefFoundError for class RootAllocator in Arrow Library, while trying to run a select query](https://community.snowflake.com/s/article/Getting-java-lang-NoClassDefFoundError-for-class-RootAllocator).
168168
169169
## Configuring a Query to Display Data as a Chart
170170
-27.5 KB
Loading
2.86 KB
Loading

0 commit comments

Comments
 (0)