<?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 Re: Setting environment variables to use in a SQL Delta Live Table Pipeline in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/57087#M30730</link>
    <description>&lt;P&gt;Hi, Could you please check if you are using shared access cluster mode?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/init-scripts/index.html" target="_blank"&gt;https://docs.databricks.com/en/init-scripts/index.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 15:56:12 GMT</pubDate>
    <dc:creator>Debayan</dc:creator>
    <dc:date>2024-01-12T15:56:12Z</dc:date>
    <item>
      <title>Setting environment variables to use in a SQL Delta Live Table Pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/56975#M30702</link>
      <description>&lt;P&gt;I'm trying to use the Global Init Scripts in Databricks to set an environment variable to use in a Delta Live Table Pipeline. I want to be able to reference a value passed in as a path versus hard coding it. Here is the code for my pipeline:&lt;/P&gt;&lt;PRE&gt;CREATE STREAMING LIVE TABLE data
COMMENT "Raw data in delta format"
TBLPROPERTIES ("quality" = "bronze", "pipelines.autoOptimize.zOrderCols" = "id")
AS
SELECT *, id FROM cloud_files(
  "${TEST_VAR}data/files", "json", map("cloudFiles.inferColumnTypes", "true")
  )&lt;/PRE&gt;&lt;P&gt;However, when I set up a global init script like below, it doesn't appear on the list of environment variables on the job compute cluster.&lt;/P&gt;&lt;PRE&gt;#!/bin/sh

sudo echo TEST_VAR=TESTING &amp;gt;&amp;gt; /etc/environment&lt;/PRE&gt;&lt;P&gt;Is this because the cluster type is PIPELINE? Is what I am attempting to do possible? Are Global Init Scripts even run when using Delta Live Table Pipelines, can can environment variables be referenced in SQL-style pipelines? I am finding little documentation about this online.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:32:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/56975#M30702</guid>
      <dc:creator>ac0</dc:creator>
      <dc:date>2024-01-11T17:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting environment variables to use in a SQL Delta Live Table Pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/57087#M30730</link>
      <description>&lt;P&gt;Hi, Could you please check if you are using shared access cluster mode?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/init-scripts/index.html" target="_blank"&gt;https://docs.databricks.com/en/init-scripts/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 15:56:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/57087#M30730</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2024-01-12T15:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting environment variables to use in a SQL Delta Live Table Pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/57514#M30810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97999"&gt;@ac0&lt;/a&gt;&amp;nbsp; Could you please refer to the doc here&amp;nbsp;&lt;A href="https://docs.databricks.com/en/init-scripts/environment-variables.html" target="_blank"&gt;https://docs.databricks.com/en/init-scripts/environment-variables.html&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;Also there is a doc which talks about the same topic: &lt;A href="https://community.databricks.com/t5/data-engineering/set-environment-variables-in-global-init-scripts/td-p/34225" target="_blank"&gt;https://community.databricks.com/t5/data-engineering/set-environment-variables-in-global-init-scripts/td-p/34225&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 21:22:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/57514#M30810</guid>
      <dc:creator>Priyanka_Biswas</dc:creator>
      <dc:date>2024-01-16T21:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Setting environment variables to use in a SQL Delta Live Table Pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/57776#M30913</link>
      <description>&lt;P&gt;I was able to accomplish this by creating a Cluster Policy that put in place the scripts, config settings, and environment variables I needed.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 15:06:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/setting-environment-variables-to-use-in-a-sql-delta-live-table/m-p/57776#M30913</guid>
      <dc:creator>ac0</dc:creator>
      <dc:date>2024-01-18T15:06:11Z</dc:date>
    </item>
  </channel>
</rss>

