Skip to content

Commit bb00015

Browse files
committed
Modofied screenshots, improved sql format and details for apache arrow dependency
1 parent 0c2b1fb commit bb00015

4 files changed

Lines changed: 39 additions & 4 deletions

File tree

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

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,19 @@ Then, use the parameter in the query:
126126
{{% alert color="info" %}}
127127
If you need to pass a list of values to a parameter, you can use the following approach:
128128

129-
`WITH empids AS (
130-
SELECT empid FROM json_table( {EmpIdList}, '$[*]' columns ( empid number path '$' ))
129+
```sql
130+
WITH empids AS (
131+
SELECT empid
132+
FROM json_table({EmpIdList}, '$[*]' columns (empid number PATH '$'))
131133
)
132134
SELECT *
133-
FROM emp WHERE empno IN (SELECT empid FROM empids);`
135+
FROM emp
136+
WHERE empno IN
137+
(SELECT empid
138+
FROM empids);
139+
```
134140

135-
where parameter `EmpIdList` is of type String with the value `[1,7946,3,4,7942,7943,7945]`.
141+
Note : Here parameter `EmpIdList` is of type String with the value `[1,7946,3,4,7942,7943,7945]`.
136142
{{% /alert %}}
137143

138144
### Using Query Response {#use-query-response}
@@ -276,3 +282,31 @@ Execute queries as you would with supported databases, and retrieve responses in
276282
{{% alert color="info" %}}
277283
By default, autocommit is set to false for design time queries.
278284
{{% /alert %}}
285+
286+
### Resolving Dependency Issues with Apache Arrow on JDK 17 or 21
287+
288+
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.
289+
290+
#### To resolve Apache Arrow dependency issue in Snowflake:
291+
292+
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.
293+
294+
To set the result format at the Snowflake session or user level, use the following SQL statement:
295+
296+
```sql
297+
**ALTER USER <user_name> SET JDBC_QUERY_RESULT_FORMAT='JSON';**
298+
```
299+
300+
This approach ensures compatibility with JDK 16+.
301+
[For more details](https://community.snowflake.com/s/article/Getting-java-lang-NoClassDefFoundError-for-class-RootAllocator).
302+
303+
#### To resolve Apache Arrow dependency issue in Databricks:
304+
305+
The Databricks JDBC Driver uses Arrow for serialization as it improves performance.
306+
307+
To override this setting add below parameter to JDBC URL
308+
309+
```sql
310+
EnableArrow=0
311+
```
312+
[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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ To set the result format at the Snowflake session or user level, use the followi
165165
```
166166
167167
This approach ensures compatibility with JDK 16+.
168+
[For more details](https://community.snowflake.com/s/article/Getting-java-lang-NoClassDefFoundError-for-class-RootAllocator).
168169
169170
## Configuring a Query to Display Data as a Chart
170171
-27.5 KB
Loading
2.86 KB
Loading

0 commit comments

Comments
 (0)