<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yash on Medium]]></title>
        <description><![CDATA[Stories by Yash on Medium]]></description>
        <link>https://medium.com/@yr-g?source=rss-21c8afcef3b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Yash on Medium</title>
            <link>https://medium.com/@yr-g?source=rss-21c8afcef3b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:39:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yr-g/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Databricks Is Positioning to Replace Fivetran]]></title>
            <link>https://yr-g.medium.com/databricks-is-positioning-to-replace-fivetran-385799ef2d0f?source=rss-21c8afcef3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/385799ef2d0f</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[fivetran]]></category>
            <category><![CDATA[lake-house]]></category>
            <category><![CDATA[data-ingestion]]></category>
            <category><![CDATA[databricks]]></category>
            <dc:creator><![CDATA[Yash]]></dc:creator>
            <pubDate>Sun, 15 Feb 2026 17:27:32 GMT</pubDate>
            <atom:updated>2026-02-15T17:27:32.864Z</atom:updated>
            <content:encoded><![CDATA[<p>For years, <strong>Fivetran</strong> has been the default ingestion layer for modern data stacks. It solved real problems — reliability, schema drift, incremental sync — but at a cost. As data volumes grow, MAR-based pricing grows with it. What starts as convenience often turns into one of the largest recurring line items in the data budget.</p><p>And beyond pricing, there’s a deeper issue: ownership.</p><p>Connector logic lives outside your platform. Customization is limited. Governance is fragmented. In a world where companies are consolidating around the lakehouse, outsourcing ingestion increasingly feels architecturally inconsistent.</p><p>That’s where <strong>Databricks Labs</strong> and <a href="https://github.com/databrickslabs/lakeflow-community-connectors"><strong>Lakeflow Community Connectors</strong></a> come in.</p><p>Lakeflow Community Connectors leverage the Spark Python Data Source API to build ingestion connectors that run <em>natively inside Databricks</em>. Instead of SaaS-managed black boxes, connectors are written in Python, version-controlled, extensible, and executed directly on Spark clusters.</p><p>But the real strategic move isn’t just technical — it’s open source.</p><p>Because it’s open:</p><ul><li>Anyone can build and publish connectors.</li><li>The community can extend coverage far beyond what a single vendor could maintain.</li><li>Organizations can fork, customize, and contribute improvements.</li><li>Connector innovation becomes decentralized.</li></ul><p>This opens the door to something even bigger: a potential connector marketplace model — where community-built connectors can be shared, standardized, and possibly curated within the Databricks ecosystem.</p><p>In other words, instead of paying a SaaS tax per row, companies can invest in reusable ingestion assets that live inside their own lakehouse.</p><p>The shift is subtle but powerful:</p><p>Closed ingestion platform → Open ingestion ecosystem<br>Vendor-controlled connectors → Community-driven connectors<br>Usage-based pricing → Platform ownership</p><p>If Databricks continues down this path, ingestion won’t just be another SaaS subscription. It will become a programmable, extensible layer of the lakehouse itself.</p><p>And that changes the economics — and the power dynamics — of the modern data stack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=385799ef2d0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use Databricks Model Serving to Power Claude Code in VS Code]]></title>
            <link>https://yr-g.medium.com/use-databricks-model-serving-to-power-claude-code-in-vs-code-869f1cc3b715?source=rss-21c8afcef3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/869f1cc3b715</guid>
            <category><![CDATA[cursor]]></category>
            <category><![CDATA[azure-databricks]]></category>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Yash]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 03:23:03 GMT</pubDate>
            <atom:updated>2026-06-05T14:03:38.511Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*vB_E8-IrMFYCfzbg60z3hA.png" /><figcaption>Claude Code in VS Code</figcaption></figure><p>Do you want to get code completion feel like copilot or cursor without subscription to them using databricks? Here’s the guide for you!</p><p>No Fluff!</p><h3>Prerequisites</h3><ul><li>Access to a Databricks workspace with <strong>Model Serving</strong> enabled.</li><li>A deployed Claude-compatible endpoint (for example, databricks-claude-sonnet-4).</li><li>VS Code installed with the <strong>Claude Code</strong> extension.</li></ul><h4><strong>Generate Access and Environment Variables</strong></h4><ul><li>In Databricks, open the <strong>Serving</strong> page.</li><li>Locate <strong>Integrate Coding Agents</strong> on your model-serving endpoint.</li><li>Click <strong>Generate Personal Access Token</strong>.</li><li>Copy the suggested environment variable block — you’ll see something like this:</li></ul><pre>{ <br>“env”: <br>{ <br>  “ANTHROPIC_MODEL”: “databricks-claude-sonnet-4–5”,<br>  “ANTHROPIC_BASE_URL”: &quot;workspace_url/serving-endpoints/anthropic&quot;, <br>  “ANTHROPIC_AUTH_TOKEN”: “&lt;REPLACE-WITH-DATABRICKS-TOKEN&gt;” <br>}<br>}</pre><h4>Configure VS Code</h4><ul><li>Open VS Code.</li><li>Install <strong>Claude Code</strong> from the Extensions marketplace if not already installed.</li><li>Press Ctrl + Shift + P → type Preferences: Open Settings (JSON).</li><li>Add or edit the following block in your settings.json:</li></ul><pre>“claudeCode.environmentVariables”: [<br>  {<br>    &quot;name&quot;: &quot;CLAUDE_CODE_SKIP_AUTH_LOGIN&quot;,<br>    &quot;value&quot;: &quot;true&quot;<br>  },<br>  {<br>    &quot;name&quot;: &quot;ANTHROPIC_BASE_URL&quot;,<br>    &quot;value&quot;: &quot;https://&lt;workspace-url&gt;/serving-endpoints/anthropic&quot;<br>  },<br>  {<br>    &quot;name&quot;: &quot;ANTHROPIC_AUTH_TOKEN&quot;,<br>    &quot;value&quot;: &quot;&lt;your-databricks-pat&gt;&quot;<br>  },<br>  {<br>    &quot;name&quot;: &quot;ANTHROPIC_MODEL&quot;,<br>    &quot;value&quot;: &quot;databricks-claude-sonnet-4-6&quot;<br>  },<br>  {<br>    &quot;name&quot;: &quot;ANTHROPIC_DEFAULT_OPUS_MODEL&quot;,<br>    &quot;value&quot;: &quot;databricks-claude-opus-4-6&quot;<br>  },<br>  {<br>    &quot;name&quot;: &quot;ANTHROPIC_DEFAULT_SONNET_MODEL&quot;,<br>    &quot;value&quot;: &quot;databricks-claude-sonnet-4&quot;<br>  },<br>  {<br>    &quot;name&quot;: &quot;ANTHROPIC_CUSTOM_HEADERS&quot;,<br>    &quot;value&quot;: &quot;x-databricks-use-coding-agent-mode: true&quot;<br>  },<br>  {<br>    &quot;name&quot;: &quot;CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS&quot;,<br>    &quot;value&quot;: &quot;1&quot;<br>  }<br>]</pre><blockquote>Save and restart VS Code.</blockquote><h3>Verify the Connection</h3><p>Open any file in VS Code and use the Claude Code command (default shortcut: Ctrl + Shift + I).<br> Ask a simple question:</p><blockquote><em>“Explain what this Python function does.”</em></blockquote><p>If the setup is correct, the response will come from your <strong>Databricks Model Serving</strong> endpoint instead of Anthropic’s API.</p><p>You can confirm by checking Databricks → <strong>Serving → Monitoring → Requests</strong> to see the live invocation logs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=869f1cc3b715" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securely Retrieving Secrets in Databricks: A Step-by-Step Guide]]></title>
            <link>https://yr-g.medium.com/securely-retrieving-secrets-in-databricks-a-step-by-step-guide-b5ee450f27a7?source=rss-21c8afcef3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5ee450f27a7</guid>
            <category><![CDATA[secrets]]></category>
            <category><![CDATA[databricks-basics]]></category>
            <category><![CDATA[databricks]]></category>
            <dc:creator><![CDATA[Yash]]></dc:creator>
            <pubDate>Tue, 18 Mar 2025 05:26:48 GMT</pubDate>
            <atom:updated>2025-03-18T05:26:48.187Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s data-driven world, managing secrets — such as API keys, credentials, or environment settings — is crucial for building secure and scalable data pipelines. When working in Databricks, one of the best practices is to store these sensitive details in a secure vault rather than hardcoding them into your notebooks. In this article, we’ll walk through a simple example of retrieving a secret using the built-in dbutils.secrets utility in Databricks.</p><h3>Why Use Secrets?</h3><p>Before diving into the code, it’s important to understand <strong>why</strong> you should use secrets in your projects:</p><ul><li><strong>Security:</strong> Secrets ensure that sensitive data is stored securely and isn’t exposed in your codebase.</li><li><strong>Flexibility:</strong> You can change secret values without modifying your code.</li><li><strong>Compliance:</strong> Using a secure vault helps meet compliance standards by managing access to sensitive information.</li></ul><h3>Setting Up Your Secret Scope</h3><p>Databricks integrates with secret management systems like Azure Key Vault, AWS Secrets Manager, or even the built-in Databricks secret scopes. In our example, we assume that you have already created a secret scope named key-vault-secret and stored a key called secret-bricks-environment that holds a value (e.g., &quot;dev&quot;).</p><h3>The Code: Retrieving and Decoding Your Secret</h3><p>Below is the Python code snippet that retrieves the secret as bytes, decodes it to a human-readable string, and prints it:</p><pre>environment = dbutils.secrets.getBytes(scope=&#39;key-vault-secret&#39;, key=&#39;secret-bricks-environment&#39;)<br>environment_str = environment.decode(&#39;utf-8&#39;)<br>print(environment_str)  # This will print: dev</pre><h3>Breaking It Down</h3><ol><li><strong>Retrieving the Secret as Bytes:</strong></li></ol><pre>environment = dbutils.secrets.getBytes(scope=&#39;key-vault-secret&#39;, key=&#39;secret-bricks-environment&#39;)</pre><ul><li><strong>dbutils.secrets.getBytes:</strong><br> This built-in Databricks utility function fetches the secret value as a bytes object. In this example, it retrieves the value associated with the key secret-bricks-environment from the key-vault-secret scope.</li><li><strong>Why Bytes?</strong><br> Retrieving as bytes can be more secure, ensuring that the raw data is not inadvertently converted or interpreted until explicitly handled.</li></ul><p>2. <strong>Decoding the Bytes to a String</strong>:</p><pre>environment_str = environment.decode(&#39;utf-8&#39;)</pre><ul><li><strong>.decode(‘utf-8’):</strong><br> The secret, originally in bytes, is converted to a UTF-8 encoded string. This step is necessary to print or use the secret in further processing.</li><li><strong>Result:</strong><br> In this case, if the secret stored is &quot;dev&quot;, then after decoding, environment_str will simply be &quot;dev&quot;.</li></ul><p>3. <strong>Printing the Secret:</strong></p><pre>print(environment_str)  # This will print: dev</pre><p>The final line prints the decoded string to the console, allowing you to verify that the secret retrieval was successful.</p><h3>Best Practices</h3><p>While the above example demonstrates the mechanics of retrieving and decoding a secret, here are some best practices to keep in mind:</p><ul><li><strong>Avoid Hardcoding:</strong><br> Never hardcode sensitive information in your notebooks or code repositories. Always use secure secret scopes.</li><li><strong>Access Control:</strong><br> Limit access to your secret scopes. Only authorized users or services should be able to read or modify them.</li><li><strong>Audit and Monitor:</strong><br> Regularly review and monitor access logs for your secret management system to detect any unauthorized access attempts.</li><li><strong>Use Environment-Specific Secrets:</strong><br> Different environments (development, staging, production) should have distinct secrets. This minimizes risk if one environment is compromised.</li></ul><h3>Conclusion</h3><p>In this article, we demonstrated how to retrieve a secret from a Databricks secret scope, decode it from bytes to a string, and print it. This simple yet effective approach helps keep your sensitive information secure while allowing your notebooks to remain flexible and environment-agnostic. Embracing secure practices like these not only strengthens your overall security posture but also streamlines your development workflow across different environments.</p><p>Happy coding, and remember: secure your secrets to secure your success!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5ee450f27a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Retrieve Your Databricks Workspace ID Using Python]]></title>
            <link>https://yr-g.medium.com/how-to-retrieve-your-databricks-workspace-id-using-python-bece86e4aab6?source=rss-21c8afcef3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bece86e4aab6</guid>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[workspace]]></category>
            <category><![CDATA[dbutils]]></category>
            <dc:creator><![CDATA[Yash]]></dc:creator>
            <pubDate>Tue, 18 Mar 2025 05:21:57 GMT</pubDate>
            <atom:updated>2025-03-18T05:21:57.584Z</atom:updated>
            <content:encoded><![CDATA[<p>When working in Databricks, you might find yourself needing to programmatically access details about your workspace. One such piece of information is the <strong>workspace ID</strong>. Whether you’re automating environment setups or simply want to log some metadata, getting the workspace ID can be handy. In this article, we’ll walk through how to obtain your workspace ID using a simple Python snippet in a Databricks notebook.</p><h3>Why Would You Need the Workspace ID?</h3><p>Your workspace ID is a unique identifier for your Databricks workspace. It can be useful for:</p><ul><li><strong>Automation Scripts:</strong> Automatically configure settings or log details based on the workspace you’re operating in.</li><li><strong>Debugging:</strong> When troubleshooting, knowing the exact workspace can help you ensure you’re running your code in the correct environment.</li><li><strong>Integration:</strong> If you’re integrating Databricks with other systems or tools, you might need to pass the workspace ID as part of your API calls or logging.</li></ul><h3>The Code to Get Your Workspace ID</h3><p>Databricks provides a built-in utility (dbutils) that lets you access a variety of contextual information about your environment. To get the workspace ID, you can use the following Python snippet:</p><pre>workspace_context = dbutils.notebook.entry_point.getDbutils().notebook().getContext()<br>workspace_id = workspace_context.workspaceId().get()<br>print(&quot;Workspace ID:&quot;, workspace_id)</pre><h3>Breaking Down the Code</h3><ol><li><strong>Accessing the Notebook Context:</strong></li></ol><pre>workspace_context = dbutils.notebook.entry_point.getDbutils().notebook().getContext()</pre><ul><li><strong>dbutils.notebook.entry_point.getDbutils()</strong>: This call gets you the internal dbutils module.</li><li><strong>.notebook().getContext()</strong>: It retrieves the context of the current notebook, which includes details like the workspace ID, user, and other metadata.</li></ul><p>2. <strong>Extracting the Workspace ID:</strong></p><pre>workspace_id = workspace_context.workspaceId().get()</pre><ul><li><strong>workspaceId()</strong>: This method fetches the workspace ID from the context.</li><li><strong>.get()</strong>: Because the value is wrapped in a Java object, you need to call .get() to retrieve the actual string.</li></ul><p>3. <strong>Printing the Workspace ID:</strong></p><pre>print(&quot;Workspace ID:&quot;, workspace_id)</pre><p>This line simply prints the workspace ID to the console, which you can then use for your records or further processing.</p><h3>A Few Things to Keep in Mind</h3><ul><li><strong>Contextual Information:</strong> The notebook context provides several useful properties beyond just the workspace ID. Feel free to explore workspace_context to see what other details you might need.</li><li><strong>Execution Environment:</strong> This code works within a Databricks notebook where dbutils is available. It won&#39;t work in a standard local Python environment.</li><li><strong>Use Cases:</strong> Automate logging, debugging, and environment checks by integrating this snippet into your larger workflow. It’s especially useful if you’re running notebooks across multiple workspaces.</li></ul><h3>Final Thoughts</h3><p>Knowing how to extract the workspace ID is a small but powerful trick in the Databricks toolkit. It helps ensure that your code is running in the right context, and it can serve as a foundation for more advanced automation and integration tasks. Whether you’re a data engineer, a data scientist, or just a curious developer, mastering these little details can make your work in Databricks more efficient and robust.</p><p>Happy coding, and may your data pipelines always run smoothly!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bece86e4aab6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>