Uh oh!
There was an error while loading. Please reload this page.
Add default scala template - #119
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We will beta preview first with some slight changes to the existing template until we can get the big pr approved (#119).
| import org.apache.spark.sql.functions.udf | ||
| object Main { | ||
| def main(args: Array[String]): Unit = { |
There was a problem hiding this comment.
This would use the same catalog/schema parameters as seen in the default template:
At this point all the default templates offer a parametrizable catalog and schema.
This could also be done in a follow-up.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
405428d to
57b3e64Compare57b3e64 to
ca5a72bCompareUh oh!
There was an error while loading. Please reload this page.
lennartkats-db
left a comment
There was a problem hiding this comment.
Please review open comments
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| def main(args: Array[String]): Unit = { | ||
| println("Hello, World!") | ||
| val catalog = getFromArgs(args, "catalog").getOrElse("samples") |
There was a problem hiding this comment.
remove default samples return..
| println("Hello, World!") | ||
| val catalog = getFromArgs(args, "catalog").getOrElse("samples") | ||
| val schema = getFromArgs(args, "schema").getOrElse("nyctaxi") |
There was a problem hiding this comment.
spark.sql(s"USE SCHEMA $schema")
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
88cdc26 to
5c664e6CompareUh oh!
There was an error while loading. Please reload this page.
## Changes <!-- Brief summary of your changes that is easy to understand --> This adds a new default scala DABs template as a follow up to databricks/bundle-examples#119 ## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> This is to provide an off the shelf template for customers to start using scala dbconnect to develop scala jobs in Databricks ## Tests <!-- How have you tested the changes? --> Manually tested user flow interactively and as job workload for both standard and serverless <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
## Changes <!-- Brief summary of your changes that is easy to understand --> This adds a new default scala DABs template as a follow up to databricks/bundle-examples#119 ## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> This is to provide an off the shelf template for customers to start using scala dbconnect to develop scala jobs in Databricks ## Tests <!-- How have you tested the changes? --> Manually tested user flow interactively and as job workload for both standard and serverless <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
## Changes <!-- Brief summary of your changes that is easy to understand --> This adds a new default scala DABs template as a follow up to databricks/bundle-examples#119 ## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> This is to provide an off the shelf template for customers to start using scala dbconnect to develop scala jobs in Databricks ## Tests <!-- How have you tested the changes? --> Manually tested user flow interactively and as job workload for both standard and serverless <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
Make the scala-job a default scala template. The following changes were made: