<?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 Gobisan on Medium]]></title>
        <description><![CDATA[Stories by Gobisan on Medium]]></description>
        <link>https://medium.com/@gobisan?source=rss-75fd130541af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uFRrS97S15SmHRjmoEpUwQ.jpeg</url>
            <title>Stories by Gobisan on Medium</title>
            <link>https://medium.com/@gobisan?source=rss-75fd130541af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:28:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gobisan/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 Classic Compute Explained]]></title>
            <link>https://gobisan.medium.com/databricks-clusters-explained-09bb26e7e9f4?source=rss-75fd130541af------2</link>
            <guid isPermaLink="false">https://medium.com/p/09bb26e7e9f4</guid>
            <category><![CDATA[databricks-cluster-policy]]></category>
            <category><![CDATA[databricks-basics]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[azure-databricks]]></category>
            <category><![CDATA[cluster]]></category>
            <dc:creator><![CDATA[Gobisan]]></dc:creator>
            <pubDate>Sat, 15 Nov 2025 15:06:56 GMT</pubDate>
            <atom:updated>2026-01-10T05:48:38.030Z</atom:updated>
            <content:encoded><![CDATA[<h4>A simple walkthrough of types, use cases and access modes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8jMXDV9TZhydJ9vXM1ssWA.png" /></figure><blockquote>Compute or cluster is a set of <strong>computation resources and configurations </strong>on which you run notebooks and jobs.</blockquote><h3>Types of Classic Compute</h3><p>Databricks primarily offers two types of classic compute, all-purpose clusters and job clusters, each serving distinct purposes. In addition, there is also instance pools and SQL warehouses.</p><h4>1. All-Purpose Clusters</h4><h4><strong>Purpose</strong></h4><p>An <strong>All-Purpose Cluster</strong> is built for <strong>interactive, collaborative work</strong>. It allows multiple users to connect simultaneously for data exploration, notebook execution, and machine learning experimentation.</p><h4><strong>Characteristics</strong></h4><ul><li><strong>Manual Creation: </strong>The user manually creates the cluster via the Databricks Web UI, CLI, or REST API.</li><li><strong>Manual Termination: </strong>It must be stopped manually; otherwise, it remains active, potentially incurring unnecessary costs. It can be manually restarted again.</li><li><strong>Scalability: </strong>Users can manually scale resources up or down as needed.</li><li><strong>Persistence: </strong>It stays available for continuous use until manually terminated.</li></ul><h4>Cost Considerations</h4><ul><li>Can become <strong>expensive</strong> if left idle, as it continues consuming resources even when not in use.</li></ul><h4>Best Use Cases</h4><ul><li>Multiple users can share the cluster for collaborative development.</li><li>Interactive data analysis and visualisations.</li><li>Building and testing machine learning models in real time.</li></ul><h4><strong>Example</strong></h4><p>A team of data scientists working on an ML model can share the same cluster to run notebooks interactively, tweak parameters, and view immediate results.</p><h4>2. Job Cluster</h4><h4>Purpose</h4><p>A <strong>Job Cluster</strong> is optimised for <strong>automated, scheduled workloads </strong>— such as ETL pipelines, data transformations, and report generation.</p><h4>Characteristics</h4><ul><li><strong>Automatic Creation:</strong> Databricks automatically provisions a new job cluster whenever a job runs.</li><li><strong>Automatic Termination:</strong> The job cluster shuts down as soon as the job completes, avoiding idle costs and it cannot be restarted.</li><li><strong>Static Resources: </strong>Not meant for interactive scaling or manual intervention during runtime.</li><li><strong>Ephemeral Nature:</strong> Exists only for the duration of the job.</li></ul><h4>Cost Considerations</h4><ul><li>Highly <strong>cost-efficient</strong>, since it runs only during job execution.</li><li>Ideal for minimising expenses in non-interactive, repetitive workloads.</li></ul><h4>Best Use Cases</h4><ul><li>Batch data processing.</li><li>Automated daily or hourly data refresh jobs.</li><li>Running ETL pipelines and generating scheduled reports.</li></ul><h4>Example</h4><p>An overnight data pipeline that cleans and aggregates data from multiple sources can use a job cluster, which spins up automatically at the scheduled time and terminates after the task.</p><h3>Choosing the Right Cluster</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FGJeV2%2F2%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FGJeV2%2F2%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FGJeV2%2Fplain-s.png%3Fv%3D2&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="525" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e38e15776513352cebf6a28757db7d9/href">https://medium.com/media/9e38e15776513352cebf6a28757db7d9/href</a></iframe><ul><li>Choose All-Purpose Clusters for continuous, interactive, multi-user environments.</li><li>Choose Job Clusters for automated, one-time, or recurring jobs where cost control and efficiency are priorities.</li></ul><h3>2. Instance Family</h3><p>When setting up a classic cluster, selecting the worker node from right instance family based on the type of workload is essential to achieve optimal performance, efficiency, and cost-effectiveness.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FSdPeZ%2F1%2F&amp;type=text%2Fhtml&amp;schema=dwcdn&amp;display_name=Datawrapper&amp;src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FSdPeZ%2F2%2F" width="600" height="434" frameborder="0" scrolling="no"><a href="https://medium.com/media/e49ef43335994eca46124978ca61301c/href">https://medium.com/media/e49ef43335994eca46124978ca61301c/href</a></iframe><h3>3. Access Modes</h3><p><strong>Access mode</strong> controls <em>who</em> can use a compute resource and <em>what data </em>they can access using the compute resource.<br> <br>Access mode selection is <strong>Auto</strong> by default, access mode is automatically chosen based on the Databricks Runtime</p><ul><li>Uses <strong>Standard </strong>mode for most runtimes.</li><li>Switches to <strong>Dedicated </strong>for ML runtimes or Databricks Runtime &lt; 14.3.</li></ul><blockquote><strong><em>Recommendation:<br></em></strong><em>Use </em><strong><em>Standard</em></strong><em> unless you need features only available in Dedicated.</em></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FA68eH%2F1%2F&amp;display_name=Datawrapper&amp;url=http%3A%2F%2Fdatawrapper.dwcdn.net%2FA68eH%2F1%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FA68eH%2Fplain-s.png%3Fv%3D1&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="222" frameborder="0" scrolling="no"><a href="https://medium.com/media/096df09000cf7296caf7676709825eba/href">https://medium.com/media/096df09000cf7296caf7676709825eba/href</a></iframe><h3>References</h3><ul><li><a href="https://docs.databricks.com/aws/en/getting-started/concepts">Databricks Components</a></li><li><a href="https://docs.databricks.com/aws/en/compute/configure#access-modes">Compute Configuration Reference</a></li><li><a href="https://docs.databricks.com/aws/en/compute/cluster-config-best-practices">Compute Configuration Recommendations</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09bb26e7e9f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Execution Order Visualised]]></title>
            <link>https://gobisan.medium.com/behind-the-scenes-of-sql-aa264736b33b?source=rss-75fd130541af------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa264736b33b</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[query-optimization]]></category>
            <dc:creator><![CDATA[Gobisan]]></dc:creator>
            <pubDate>Wed, 10 Jan 2024 06:02:15 GMT</pubDate>
            <atom:updated>2025-12-27T17:43:09.740Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Uer5RxwE8HLVSEKD6R9JA.png" /></figure><p>Consider a query that aims to retrieve information about employees who received a total bonus of more than $10,000 between June 1st and October 1st of 2023, showing the employee ID and total bonus amount while presenting the results in descending order of total bonus with the top 3 highest total bonus amounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_xCAakg6SW6Ig038rRQ_8w.png" /></figure><h3>Our query will look like this:</h3><pre>SELECT<br>  e.employee_id<br>  , SUM(b.bonus_amount) AS total_bonus<br>FROM bonus b<br>JOIN employee e<br>ON b.employee_id = e.employee_id<br>WHERE b.bonus_date BETWEEN &#39;2023-06-01&#39; AND &#39;2023-09-01&#39;<br>GROUP BY e.employee_id<br>HAVING total_bonus &gt;= 10000<br>ORDER BY total_bonus DESC<br>LIMIT 3;</pre><h3>Visualisation of SQL query execution:</h3><p>Below is a high-level abstraction of the execution order of above SQL query</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XeSEyhsMc_z5GKHIS4BZng.png" /></figure><h3>Lets look at the execution order in detail</h3><h4>1. FROM</h4><p>Before fetching any results, we should identify from which tables we should fetch the result; therefore, obviously, the FROM clause will be executed first.</p><p>In our query, initially, the results will be fetched from the employee table.</p><h4>2. JOIN</h4><p>The JOIN will be executed immediately after the FROM clause, where the data from different tables will be combined based on the joining condition.</p><p>In our query, we have used an INNER JOIN to combine the results set between employee and bonus tables, excluding any employees who didn’t receive any bonuses during the specified period.</p><p>Using <strong>indexes</strong> in the join column will significantly improve the performance of the join operation.</p><h4>3. WHERE</h4><p>The WHERE clause will be immediately executed after the FROM clause; this will filter out, or rather reduce, the size of the result set before performing any other operations.</p><p>In our query, we are considering the employees who received bonuses between June 1st and October 1st of 2023.</p><h4>4. GROUP BY</h4><p>The GROUP BY clause is executed after the WHERE clause, and it groups the result set by the employee ID. This means that the aggregate function SUM is applied to subsets of data where the employee ID is the same.</p><p>In SQL, when we use the GROUP BY clause, any columns in the SELECT clause that are not part of an aggregate function must be included in the GROUP BY clause.</p><p>The reason for this requirement is that the non-aggregated columns in the SELECT clause determine the granularity of the grouping—how we want to group the results.</p><p>This ensures that the result set is grouped by employee ID, and the <strong>aggregate functions are applied within each group.</strong></p><h4>5. HAVING</h4><p>The HAVING clause is used to filter the results after the GROUP BY operation has been applied. The HAVING clause is applied to aggregated values and is similar to the WHERE clause, but it is specifically designed to work with aggregated data.</p><p>In our query, HAVING clause filters out employees whose total bonus amount is more than $10,000 within the specified time frame.</p><p><strong>NOTE:</strong></p><ul><li>The HAVING clause allows you to filter the results based on aggregated values, whereas the WHERE clause filters the individual rows before they are aggregated.</li><li>Remember that we can’t use the alias of an aggregated column, defined in SELECT clause, in HAVING clause because HAVING is executed before SELECT.</li></ul><h4>6. SELECT</h4><p>The SELECT clause defines which columns we want in our result set. Even though SELECT appears at the top of a query, it is executed far down.</p><p>In our query, we are selecting the employee ID and total bonus.</p><h4>7. ORDER BY</h4><p>As we can clearly see, results are sorted in descending order of total bonus, which is aggregated in the SELECT clause. Therefore, the ORDER BY clause will be executed after SELECT.</p><p>Remember that sorting a larger result set leads to high memory usage and slow response time; therefore, it is <strong>not recommended</strong> to perform sorting on a larger result set.</p><p>But if the columns involved in the ORDER BY clause are properly indexed, it can speed up the data retrieval process.</p><h4>8. LIMIT</h4><p>In a SQL query, the LIMIT clause is used to restrict the number of rows returned by the query. It is typically used at the end of a query to limit the result set to a specific number of rows.</p><p>In our query, the LIMIT clause restricts the result set to a maximum of 3 rows after sorting the result set.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa264736b33b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Observability]]></title>
            <link>https://gobisan.medium.com/what-is-data-observability-4da2ddac74ec?source=rss-75fd130541af------2</link>
            <guid isPermaLink="false">https://medium.com/p/4da2ddac74ec</guid>
            <category><![CDATA[data-lineage]]></category>
            <category><![CDATA[data-observability]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-monitoring]]></category>
            <dc:creator><![CDATA[Gobisan]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 05:57:26 GMT</pubDate>
            <atom:updated>2025-11-19T09:52:20.546Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjG5OwDUj236AQbIjjnhnw.png" /></figure><h3>Context</h3><p>There might be situations where the data team is in trouble when dashboards are failing, tons of tickets are getting raised from different downstream stakeholders, and the data engineers are searching for the root cause of the problem.</p><p>This is why data engineers must have the ability to better understand the <strong>health of the data</strong> on their platform. Data observability helps to achieve this ability.</p><p>Before jumping into data observability, let us look at the data platform.</p><h3>The Data Platform</h3><p>A data platform is an end-to-end solution with an integrated set of technologies that collectively meets an organization’s analytics needs by ingesting, storing, transforming, and serving the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cjgeppUJvY0NydV6B6E2gg.png" /><figcaption>Data platform based on Medallion Lakehouse architecture. Image courtesy of author.</figcaption></figure><p>Layers of a Data Platform:</p><ol><li><strong>Ingestion</strong>: Data generated by source systems (batch and stream) is ingested into the data lake.</li><li><strong>Storage</strong>: Extracted data is moved to a storage layer where it can be further prepared for downstream use cases.</li><li><strong>Transformation:</strong> Raw data is cleansed and integrated in order to apply the business logic and make it available for further analysis.</li><li><strong>Serving: </strong>Prepared data is made available for downstream consumers through visualization tools, frontline operations tools, or ML pipelines.</li><li>There is a fifth layer; continue reading to find out.</li></ol><p>The above-described scenario is an <strong>ideal one</strong>, but in the real world, there might be some anomalies.</p><p><strong>Anomalies in the behavior of the pipeline:</strong></p><ul><li>Is the pipeline ingesting timely and fresh data at an acceptable frequency?</li><li>Are there too many or too few rows in the data lake (or warehouse), or is the data complete?</li><li>Are there any data drops or duplicates while ingesting?</li><li>Have issues arisen downstream as a result of the source schema change?</li></ul><p><strong>Anomalies in the data flowing through the pipeline:</strong></p><ul><li>Is the data available to consumers accurate and consistent?</li><li>Are null values within an accepted range?</li></ul><p>Answering these questions is critical to preventing or mitigating the impact of data incidents on downstream consumers. That’s where the <strong>fifth layer</strong> of the data platform comes into play, which is data observability.</p><h3>What is Data Observability?</h3><p>Data observability is the ability to <strong>understand the health of the data platform </strong>by<strong> </strong>capturing events, measuring metrics, and correlating them across the platform.</p><h3>Why Data Observability?</h3><p>Data observability tools use automated monitoring, root cause analysis, data lineage, and data health insights to proactively detect, resolve, and prevent data anomalies.</p><p>This approach results in healthier data pipelines, increased team productivity, enhanced data management practices, less data downtime, and ultimately, higher customer satisfaction.</p><h3>Key Pillars of Data Observability</h3><h4><strong>1. Freshness</strong>:</h4><p>Freshness refers to the accuracy and timeliness of data, ensuring it is up-to-date and relevant to the current situation.</p><h4>2. <strong>Distribution:</strong></h4><p>Distribution refers to the health of data assets at the field level, with null values being a key metric. Abnormal representations of expected values in data assets can also indicate distribution issues.</p><h4>3. <strong>Volume</strong>:</h4><p>Volume refers to the amount of data in a file or database, which is crucial for meeting the intake and completeness of tables and offering insights into the health of the data source.</p><h4>4. <strong>Schema:</strong></h4><p>Schema, a formal structure in a database management system, is often the cause of data downtime incidents due to changes in fields and tables; thus, auditing is crucial for data health.</p><h4>5. <strong>Lineage:</strong></h4><p>Data lineage is a crucial tool that identifies the upstream sources and downstream consumers impacted, the teams generating and accessing the data, and provides metadata about governance, business, and technical guidelines associated with specific data tables, serving as a single source of truth for all consumers.</p><h3>Core capabilities of a Data Observability Solution</h3><h4><strong>1. Detection:</strong></h4><p>Detect anomalies in the behavior of data and pipelines and send alerts.</p><h4><strong>2. Prevention</strong></h4><p>Prevent incidents by identifying areas for preventive maintenance, such as deteriorating queries or unused tables, and identifying areas with consistent quality issues.</p><h4><strong>3. Resolution:</strong></h4><p>Offers various tools for resolving issues, including field-level lineage, automated root cause analysis, past incidents, and query logs.</p><h3>References</h3><ul><li><a href="https://www.upsolver.com/blog/data-pipeline-architecture-building-blocks-diagrams-and-patterns">Data Pipeline Architecture: Building Blocks, Diagrams, and Patterns</a></li><li><a href="https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/scenarios/cloud-scale-analytics/manage-observability">Data Observability — Microsoft</a></li><li><a href="https://towardsdatascience.com/introducing-the-five-pillars-of-data-observability-e73734b263d5">Introducing the 5 Pillars of Data Observability</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4da2ddac74ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>