# Converting Scala code using Snowpark

BlackDiamond Studio identifies and transforms the usages of the Apache Spark API to their Snowpark functional equivalent.

Check more information about the [Scala Conversion tool](https://docs.mobilize.net/snowconvert/for-spark-scala/introduction).

## **Conversion Steps**

### **Convert Scala from the portal**

Please refer to the project creation wizard step: [Upload my source code](/blackdiamond-studio-or-mobilize.net/blackdiamond-studio-documentation/bds-portal/creating-my-first-project/5.-code.md).

### **Convert Scala from the IDE**

Please check the [Converting from the IDE guide.](/blackdiamond-studio-or-mobilize.net/blackdiamond-studio-documentation/code-conversions/converting-from-the-ide.md)&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gapvelocity.ai/blackdiamond-studio-or-mobilize.net/blackdiamond-studio-documentation/code-conversions/converting-scala-code-using-snowpark.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
