<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Read arguments in a scala note invoked by a job. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/read-arguments-in-a-scala-note-invoked-by-a-job/m-p/19793#M13324</link>
    <description>&lt;P&gt;In a scala note, how to I read input arguments (e.g. those proved by a job that runs a scala notebook).   In python, dbutils.notebook.entry_point.getCurrentBindings() works.   How about for scala.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 03:13:57 GMT</pubDate>
    <dc:creator>rrussell25</dc:creator>
    <dc:date>2022-11-30T03:13:57Z</dc:date>
    <item>
      <title>Read arguments in a scala note invoked by a job.</title>
      <link>https://community.databricks.com/t5/data-engineering/read-arguments-in-a-scala-note-invoked-by-a-job/m-p/19793#M13324</link>
      <description>&lt;P&gt;In a scala note, how to I read input arguments (e.g. those proved by a job that runs a scala notebook).   In python, dbutils.notebook.entry_point.getCurrentBindings() works.   How about for scala.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 03:13:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-arguments-in-a-scala-note-invoked-by-a-job/m-p/19793#M13324</guid>
      <dc:creator>rrussell25</dc:creator>
      <dc:date>2022-11-30T03:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read arguments in a scala note invoked by a job.</title>
      <link>https://community.databricks.com/t5/data-engineering/read-arguments-in-a-scala-note-invoked-by-a-job/m-p/19794#M13325</link>
      <description>&lt;P&gt;Hi @Robert Russell​&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use dbutils.notebook.getContext.currentRunId in scala notebooks. &lt;/P&gt;&lt;P&gt;Other methods are also available like&lt;/P&gt;&lt;P&gt;dbutils.notebook.getContext.jobGroup&lt;/P&gt;&lt;P&gt;dbutils.notebook.getContext.rootRunId  &lt;/P&gt;&lt;P&gt;dbutils.notebook.getContext.tags   etc...&lt;/P&gt;&lt;P&gt;You can check out the list of methods available in getContext using the autofill feature &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;  by hitting tab after dbutils.notebook.getContext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers..&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 19:04:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-arguments-in-a-scala-note-invoked-by-a-job/m-p/19794#M13325</guid>
      <dc:creator>UmaMahesh1</dc:creator>
      <dc:date>2022-11-30T19:04:00Z</dc:date>
    </item>
  </channel>
</rss>

