<?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 Rose Caleno on Medium]]></title>
        <description><![CDATA[Stories by Rose Caleno on Medium]]></description>
        <link>https://medium.com/@calenorose?source=rss-1dd198a064d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JEVMxbcj1IlYZ5b6YTgnsg.jpeg</url>
            <title>Stories by Rose Caleno on Medium</title>
            <link>https://medium.com/@calenorose?source=rss-1dd198a064d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:04:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@calenorose/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[Everyone Loved the Looker Data Apps Demo. My Colleagues Said “Okay… What’s This?”]]></title>
            <link>https://medium.com/@calenorose/everyone-loved-the-looker-data-apps-demo-my-colleagues-said-okay-whats-this-3f7a7f951a16?source=rss-1dd198a064d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f7a7f951a16</guid>
            <category><![CDATA[developer-relations]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[analytics-engineering]]></category>
            <category><![CDATA[looker]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Rose Caleno]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 11:01:26 GMT</pubDate>
            <atom:updated>2026-11-27T11:01:26.966Z</atom:updated>
            <content:encoded><![CDATA[<h4>The webinar got heart emojis. My first build got a shrug. Here is what I am changing and why it has everything to do with who the app is for.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*PdF3FGAULSoI0vZIbEqHXg.png" /></figure><p>A few weeks ago I joined two Google Cloud webinars on Looker Data Apps. The presenters built apps live, using prompts, on top of Looker’s semantic layer. In the first one, where reactions and chat were turned on, the chat went crazy. Heart emojis everywhere. “This is so cool.” “Can’t wait to try this.” Questions flying in faster than they could answer them.</p><p>I was one of the people typing.</p><p>I had been preparing for this for a while because I have been curious about what Data Apps are and how I can use them in my work. So far, I had just been reading the documentation. Attending the sessions where the Looker team walked through what they were building was just what I needed to confirm that, if used right, Data Apps are a HUGE deal for anyone in analytics. So when I started building my own at work, I already knew how the demo would go. I would show it, people would get excited and we would talk about all the ways we could use it.</p><p>I showed an early version to two people.</p><p>“Okay… what’s this?”</p><p>That was it. No hearts.</p><p>I will be honest, that stung a little. But it also taught me the most useful thing I have learned about Data Apps: it all comes down to who I am building it for.</p><h3>First, What Are Looker Data Apps?</h3><p>If you missed the webinars, here is the short version.</p><p>A Data App is a custom, interactive app that you publish inside Looker. What is new is how you build it. You describe what you want to an AI coding agent and the agent builds the app on top of your LookML model.</p><p>If you work in Looker, you already have a semantic layer. It is the LookML where someone (maybe you) defined what “active customer” or “revenue” or “units sold” means, once, for everyone. A Data App queries through that layer. The presenters were very clear about this: there is no raw SQL generation. The app cannot make up its own version of a metric. The very first app they showed was built with zero handwritten SQL.</p><p>The same goes for access. Folder permissions, user permissions and row-level rules all stay in Looker and the app inherits them. If someone cannot see a region’s data on a dashboard, they cannot see it in the app either.</p><p>Why does that matter? During one of the webinars, they ran a live poll on the biggest concern with AI built analytics. The top two answers were inaccurate metrics and security and governance. (No surprise there. If you have ever had two dashboards show two different numbers for the same metric, you know the pain.) With Data Apps, neither of those is left to the AI to get right. LookML already handles it.</p><p>What you get in return is freedom in everything around the data. Custom layouts, interactions and visuals that a standard Looker dashboard tile cannot give you.</p><h3>So, What Am I Building?</h3><p>I will not go into the details of my company’s data, but the idea is simple. An app that watches the devices we have sold in the field and shows which ones need help. Some stop sending data. Some keep reporting the same fault. Some were set up badly from day one.</p><p>It is still a work in progress. I started with a design mock that uses real numbers, not placeholder data, so every chart on the page is something true. The real app is being built on top of it.</p><p>And in that first version, I kept adding. A map. A daily trend chart. Breakdowns by region. How long alerts had been open. Which faults kept repeating. Each piece was interesting on its own, and honestly, I was having so much fun.</p><p>By the end it had four tabs and more cards than I could count.</p><p>That was the version that got “Okay… what’s this?”</p><h3>What the Flat Reaction Was Really Telling Me</h3><p>My first feeling was discouragement. I had put real effort into this, a lot of it out of my own curiosity. A small “nice work” would not have cost anything.</p><p>But after a day, I saw it differently.</p><p>The people on that first webinar were builders watching builders. They were excited about how the app was made. They loved the prompt-to-app part. My colleagues did not care how it was made. They opened it, looked for the answer to their question and could not find it in the first few seconds.</p><p>The app showed everything it could do, instead of what they needed to know.</p><p>And honestly, that was on me.</p><h3>What I Am Changing</h3><p>I am rebuilding it around three questions, top to bottom:</p><ol><li><strong>Are our units OK?</strong> One sentence with the headline numbers, and one bar under it.</li><li><strong>What changed?</strong> At most three findings, each with its number and why it matters.</li><li><strong>Which ones do I act on?</strong> A short list, with the problem in plain words and the next step.</li></ol><p>The map, the charts and the tables are not going anywhere. They are moving behind an “Explore” tab for the people who want to dig.</p><p>A few small rules are making the biggest difference:</p><ul><li><strong>Put every item in one group only.</strong> If the groups add up to the total, nobody will ask why the numbers do not match. (Trust me, they will ask.)</li><li><strong>Show the definitions.</strong> I am adding a short section explaining how each number is counted and which field it comes from. My more technical colleagues trust a number more when they can check it themselves.</li><li><strong>Plain words over field names.</strong> “Battery keeps running out” instead of a column name only I understand.</li><li><strong>Fewer findings, each with a reason.</strong> A finding without a “so what” is just another chart.</li></ul><p>This is the part I love about Data Apps. Because the metric logic lives in LookML, I do not rewrite queries every time I change the layout. I am only changing the story.</p><h3>If You Are Building Your First One</h3><p>A few things I have learned so far:</p><ul><li>Start from one person’s question, not from the data you have. Write the question down before you prompt anything.</li><li>Mock it with real numbers first. Placeholder data hides the hard parts, like overlapping gaps or totals that do not add up.</li><li>Still check the numbers yourself. The semantic layer keeps definitions consistent, but you still need to be sure the definition answers the question you are asking.</li><li>Put depth behind a tab. Keep it. Do not lead with it.</li><li>Test it on someone who was not in the room. Their first ten seconds will tell you more than any demo.</li></ul><h3>Why I Am Still Excited About GA</h3><p>General availability is expected “in the coming weeks.”</p><p>What I am most looking forward to is the roadmap after GA: OAuth sign-in instead of API keys, version control and CI/CD. That is what will make Data Apps feel like real software a team can build and maintain together, not just a cool thing one person made on a Tuesday.</p><h3>Back to the Hearts</h3><p>I did not start learning Data Apps to impress anyone. I started because the idea excited me and it still does. A few more heart emojis would have been nice, sure. But the flat reaction is making my app better and I would take that over the hearts any day.</p><p>Oh, and one more thing… Watching those webinars, I was not only excited about Data Apps. I was excited about what the people presenting were doing. An outbound product manager telling the story, the product manager building Data Apps walking us through the roadmap, and a developer advocate building apps live in front of all of us. Taking something technical and getting a room full of strangers to care about it. I love that work. Demos, explaining things, knowing what I am building and who it is for, writing articles like this one. It is a big part of why I am thinking about Developer Relations as my next path. (Ha! Maybe that is why the hearts mattered to me more than they should have.)</p><p>Are you building Data Apps too? I would love to hear what your first audience said. Drop a comment or connect with me on LinkedIn. And if you work in Developer Relations, I would really love to hear how you got there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f7a7f951a16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Look Won’t Load: Making Sense of Looker’s Slowest and Heaviest Queries and How to Fix Them]]></title>
            <link>https://medium.com/@calenorose/my-look-wont-load-making-sense-of-looker-s-slowest-and-heaviest-queries-and-how-to-fix-them-92168d938f48?source=rss-1dd198a064d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/92168d938f48</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[looker]]></category>
            <category><![CDATA[lookml]]></category>
            <category><![CDATA[query-optimization]]></category>
            <dc:creator><![CDATA[Rose Caleno]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 18:03:34 GMT</pubDate>
            <atom:updated>2026-03-25T18:03:34.289Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Look Won’t Load: A Guide to Looker’s Slowest and Heaviest Queries and How to Fix Them</h3><p>Your look is not loading. The spinner has been spinning for minutes. You have already checked Slack twice and played around with your phone to pass the time, but the look is still not loading and now you are frustrated. What can you do?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sui5C7YPXmOtTq6yVCrFeg.jpeg" /></figure><p><strong>Open the SQL tab. Yes, do that first.</strong></p><p>I know it looks crazy to check all those generated queries. But you see that 200 line wall of hashes? Looker itself is trying to tell you exactly what is wrong. Why your look is very slow.</p><pre>SUM(DISTINCT (CAST(FLOOR(COALESCE(daily_energy, 0) * (1000000 * 1.0))<br>  AS DECIMAL(38,0))) + CAST(STRTOL(LEFT(MD5(CAST(identifier AS VARCHAR)),<br>  15), 16) AS DECIMAL(38,0)) * 1.0e8 + CAST(STRTOL(RIGHT(MD5(CAST(<br>  identifier AS VARCHAR)), 15), 16) ...</pre><p>This is Looker’s <strong>symmetric aggregate.</strong> It is a<strong> </strong>built in mechanism for handling row duplication caused by joins. It is doing real work. All that CAST, FLOOR, MD5, STRTOL and DECIMAL(38,0) you see is a patented approach that does the heavy lifting for you. But it is expensive work. And in many cases, it is doing that work because of problems <strong>you</strong> created (<em>if you wrote that LookML)</em>.</p><p>Let me break down what is happening, why it kills performance and how to fix it in your LookML.</p><h3>Why Looker Generates This SQL</h3><p>When you join two tables, the database produces every valid combination of matching rows. For example, if Guest A appears once in your bookings table but 3 times in your guest table (maybe they updated their phone number twice), the join produces 3 rows for what should be 1 record. A SUM(revenue) now counts that booking 3 times.</p><p>This is a <strong>fanout, </strong>meaning<strong> </strong>one source row is multiplied into many by a join. It is not a bug. It is how SQL joins work. But it wrecks any aggregate that is not aware of it.</p><h3>How Looker’s Symmetric Aggregate Actually Works</h3><p>Let’s assume you have three rows after a join fans out:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bnZzdeZaiBlD6Phn7oS-rQ.png" /></figure><p>You cannot just do SUM(DISTINCT daily_energy)It will give you 2.5 instead of 5.0, because it sees two identical values and drops one. It has no way to know row 2 is a fake duplicate but row 3 is real.</p><p>So Looker does something clever:</p><ol><li><strong>Step 1: Generate a unique fingerprint</strong> for each source row by hashing its primary key. MD5(&#39;Device_A&#39;) might become 839201 and MD5(&#39;Device_B&#39;) becomes 472910</li><li><strong>Step 2: Combine the energy value with the fingerprint.</strong> 2.5 + 839201 = 839203.5 for Device A, 2.5 + 472910 = 472912.5 for Device B. Now every row has a unique number, even if the original energy values were identical.</li><li><strong>Step 3: </strong><strong>SUM(DISTINCT ...)</strong> over those combined numbers. Row 1 and Row 2 both produce839203.5, so the duplicate collapses into one. Row 3 produces 472912.5 and is kept. Total: 839203.5 + 472912.5.</li><li><strong>Step 4: Subtract the fingerprints.</strong> Separately compute SUM(DISTINCT fingerprint) = 839201 + 472910, then subtract it from the total. What&#39;s left is 2.5 + 2.5 = 5.0 which is the correct answer.</li></ol><p>The * 1,000,000 you see in the SQL is Looker converting decimal values like 2.5 into integers (2,500,000) before combining them with the hash, so it does not lose decimal precision in the process.</p><p>Now, all these 4 steps guarantee correct aggregation across fanouts. But all that CAST, FLOOR, MD5, STRTOL and DECIMAL(38,0) arithmetic <strong>runs on every row, for every measure, on every query.</strong> Multiply that across 8 joined tables and you will end up with a query that takes forever to return results.</p><h3>The Catch: It Only Protects Joined Views</h3><p>So here is what some Looker users do not know. Looker only applies symmetric aggregates to measures in <strong>joined views, </strong>which are the tables brought in with join: blocks. The <strong>base table</strong> of your explore gets <strong>no</strong> protection.</p><p>If a join fans out your base table, Looker runs a plain SUM or AVG across all the duplicated rows. No hashing, no deduplication. Fast query, wrong answer.</p><p>So you end up with two failure modes:</p><ul><li><strong>Joined view measures</strong>: Correct results but heavy SQL that takes forever.</li><li><strong>Base table measures</strong>: Fast query but silently wrong when fanout exists.</li></ul><p>Neither is what you want.</p><h3>Three Patterns That Make It Worse</h3><h3>1. OR Joins</h3><pre>sql_on: ${metrics.id} = ${config.primary_unit}<br>     OR ${metrics.id} = ${config.secondary_unit} ;;</pre><p>An OR condition means a single row can match multiple rows on the other side. Think of it like a hotel system matching guests by name OR email. If both match different records, one booking suddenly appears twice. Looker cannot model this as one_to_one, so every measure on both sides gets the full symmetric aggregate treatment. Your query complexity doubles at minimum.</p><h3>2. Missing Primary Keys</h3><p>Looker uses the primary key to build that MD5 fingerprint. Without primary_key: yes on a joined view, two things happen:</p><ul><li>SUM and AVG measures silently vanish from the explore. You see the measure in LookML but on the explore, the measure does not exist.</li><li>If measures do appear, Looker cannot generate an efficient deduplication key, so it falls back to heavier logic.</li></ul><p>This is probably the most common reported “mystery bug” by analysts I have seen. The measure is defined correctly, the join looks fine, but the field does not show up in the explore.</p><h3>3. Kitchen-Sink Explores</h3><p>If your explore joins 8 tables but a specific tile only needs 2, Looker still generates SQL referencing <strong>ALL joined tables</strong>. Each extra join is another potential fanout, another set of symmetric aggregate calculations, another reason the query takes too long to build.</p><p>The generated SQL reflects the full join graph of the explore, not the subset your tile actually uses.</p><h3>How to Fix It</h3><ol><li><strong>Use </strong><strong>sum_distinct with </strong><strong>sql_distinct_key on Your Base Table</strong></li></ol><p>Please, do not rely on Looker’s automatic protection because it does not cover the base table. Define an explicit composite key and tell Looker exactly how to deduplicate:</p><pre>dimension: pk {<br>  primary_key: yes<br>  hidden: yes<br>  sql: ${identifier} || &#39;-&#39; || CAST(${metric_date} AS VARCHAR) ;;<br>}<br><br>measure: total_energy {<br>  type: sum_distinct<br>  sql_distinct_key: ${pk} ;;<br>  sql: ${daily_energy} ;;<br>}</pre><p>sum_distinct uses the same hash based deduplication under the hood, but in this case, you control the key. This means Looker does not have to infer it from join relationships and the generated SQL is often more efficient because the deduplication target is explicit.</p><p>2.<strong> Add Primary Keys to Every View</strong></p><p>This is non negotiable. Every view that participates in a join needs this:</p><pre>dimension: identifier {<br>  primary_key: yes<br>  sql: ${TABLE}.identifier ;;<br>}</pre><p>If the table does not have a single unique column, build a composite one the same way you would define a composite key in SQL by concatenating the columns that together form a unique row.</p><p><strong>3. Filter Inside Measures, Not Just on Looks or Dashboards</strong></p><p>If your underlying table holds 30 days of data but the metric is a 7 day rolling average, put the window directly in the measure SQL:</p><pre>measure: total_energy_7d {<br>  type: sum_distinct<br>  sql_distinct_key: ${pk} ;;<br>  sql: CASE WHEN DATEDIFF(day, ${metric_date}, CURRENT_DATE)<br>            BETWEEN 1 AND 7<br>       THEN ${daily_energy} ELSE NULL END ;;<br>}<br><br>measure: distinct_days {<br>  type: count_distinct<br>  sql: CASE WHEN DATEDIFF(day, ${metric_date}, CURRENT_DATE)<br>            BETWEEN 1 AND 7<br>       THEN ${metric_date} ELSE NULL END ;;<br>}<br><br>measure: avg_daily_energy_7d {<br>  type: number<br>  value_format: &quot;0.00\&quot; kWh\&quot;&quot;<br>  sql: ${total_energy_7d} / NULLIF(${distinct_days}, 0) ;;<br>}</pre><p>Look or dashboard level filters can miss derived measures or get bypassed by scheduled deliveries. Inline filters guarantee the correct window regardless of how the measure gets used.</p><p><strong>4. Audit Your Joins</strong></p><p>Look at each join in your explore and ask:</p><ul><li>Does the look/dashboard actually need this table?</li><li>Could this measure live in a leaner, purpose built explore?</li><li>Is the relationship correctly declared? (many_to_one vs one_to_one matters)</li></ul><p>For example, splitting a heavy 10 join explore into two focused 4 join explores is often the single biggest performance win because it reduces the surface area for silent fanout bugs.</p><h3>This Is not Just About Speed</h3><p>I learned all of this the hard way. We had two dashboards showing the same metric. One computed from a pre aggregated DAG table, the other from raw telemetry at query time. One showed 0.64 kWh. The other showed 2.52 kWh. A 4x discrepancy.</p><p>The root cause was a chain of everything described above: an OR join quietly duplicating base table rows, a missing primary key hiding measures from a joined view, and an unfiltered date windowaveraging across 30 days instead of 7.</p><p>I only found it by reading the generated SQL, the same SQL most analysts instinctively look away from.</p><p>Now, when I get someone asking me why their look is slow, I know better. There is a data quality problem wearing a performance mask. The real problems are the fanout, missing keys and over joined explores, which all live in the LookML.</p><p>As an analyst using Looker, learn how to read the generated SQL to fix those issues. The SQL will get simpler, the queries faster and the numbers will be right.</p><blockquote><em>Oh, one last thing…Read the </em><a href="https://docs.cloud.google.com/looker/docs/intro"><em>Looker documentation</em></a><em>. Not just when something breaks. Read it before things break. The symmetric aggregates page, the join parameters reference, the fanout best practices. Most of the answers in this article came from there. I just found them the hard way first.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92168d938f48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Load Large GeoJSON Polygons into Amazon Redshift]]></title>
            <link>https://medium.com/@calenorose/how-to-load-large-geojson-polygons-into-amazon-redshift-d41f55378abe?source=rss-1dd198a064d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d41f55378abe</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[geojson]]></category>
            <category><![CDATA[polygon]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[redshift]]></category>
            <dc:creator><![CDATA[Rose Caleno]]></dc:creator>
            <pubDate>Thu, 22 Jan 2026 11:49:37 GMT</pubDate>
            <atom:updated>2026-01-22T11:49:37.801Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why ST_GeomFromGeoJSON fails on large polygons and what to use instead</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lGcEpe4RXVpRntV5SwgiQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@tata186?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tatiana Rodriguez</a> on <a href="https://unsplash.com/photos/brown-and-black-map-0vjvsPijSsA?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>If you have ever tried to run point-in-polygon queries in Amazon Redshift using GeoJSON data, you may have hit a wall as I did.</p><p>My task seemed simple enough. Match customer GPS coordinates to some LGAs to determine subsidy eligibility. I had a GeoJSON file with 774 polygon boundaries and also had customer lat/long data. Redshift has spatial functions. Then it should be straightforward, right?</p><p><em>Ha. Ha. Ha. It was </em><strong><em>not</em></strong><em> straightforward.</em></p><h3>The Setup</h3><p>I needed to join customer locations to LGA polygons using ST_Contains(). The GeoJSON file had the typical structure:</p><pre>{<br>  &quot;type&quot;: &quot;FeatureCollection&quot;,<br>  &quot;features&quot;: [<br>    {<br>      &quot;properties&quot;: { &quot;state&quot;: &quot;Lagos&quot;, &quot;lga&quot;: &quot;Ikeja&quot;, &quot;subsidy&quot;: &quot;Level 1&quot; },<br>      &quot;geometry&quot;: {<br>        &quot;type&quot;: &quot;MultiPolygon&quot;,<br>        &quot;coordinates&quot;: [[[[3.34, 6.58], [3.35, 6.59], ...]]]<br>      }<br>    }<br>  ]<br>}</pre><p>It may seem as easy as loading it, converting to geometry then running the spatial join.</p><p>But after hours of mass frustration, I had a graveyard of 3 major failed approaches before getting the solution. Let me show you what I did or thought about doing.</p><h3>Attempt #1: Store as SUPER thenConvert at Runtime</h3><p>I thought about using Redshift’s SUPER data type that can hold up to 16MB of semi structured data and thought it would be perfect for those massive coordinate arrays. I loaded the GeoJSON via S3 and Fivetran.</p><pre>CREATE TABLE lga_boundaries (<br>    state VARCHAR(100),<br>    lga VARCHAR(100),<br>    subsidy VARCHAR(100),<br>    geometry_type VARCHAR(50),<br>    geometry_coordinates SUPER<br>);</pre><p>The data loaded fine. Now, for the spatial join, I thought I would convert the SUPER coordinates to geometry at query time</p><pre>WITH lga_geom AS (<br>  SELECT<br>    state, lga, subsidy,<br>    ST_SetSRID(<br>      ST_GeomFromGeoJSON(<br>        &#39;{&quot;type&quot;:&quot;&#39; || geometry_type || &#39;&quot;,&quot;coordinates&quot;:&#39; || geometry_coordinates || &#39;}&#39;), 4326) AS geom<br>  FROM lga_boundaries<br>)<br>SELECT<br>    c.*,<br>    g.state AS lga_state,<br>    g.lga AS lga_name,<br>    g.subsidy<br>FROM customers c<br>LEFT JOIN lga_geom g<br>  ON ST_Contains(g.geom, ST_SetSRID(ST_Point(c.longitude, c.latitude), 4326));</pre><p>I ran it and there were no errors. Then, the results came back and something was wrong.</p><p>The three columns I needed lga_state, lga_name, subsidy were all NULL. Every single row.</p><p>No error message on Looker. Just… nothing.</p><p>This is the worst kind of failure. Silent. You do not know if it is your data, your query, your logic or Redshift itself.</p><p><em>Strike one.</em></p><h3>Attempt #2: Use json_serialize() to Fix the Conversion</h3><p>After digging through docs, I suspected the string concatenation with SUPER was not working properly. Maybe I needed to explicitly serialize the SUPER value to VARCHAR first.</p><pre>ST_GeomFromGeoJSON(<br>  &#39;{&quot;type&quot;:&quot;&#39; || geometry_type || &#39;&quot;,&quot;coordinates&quot;:&#39; || json_serialize(geometry_coordinates) || &#39;}&#39;<br>)</pre><p>This time, Redshift did not stay silent. I got the error</p><pre>ERROR: Invalid input<br>Detail: -----------------------------------------------<br>error: Invalid input<br>code: 8001<br>context: SUPER value exceeds export size.</pre><p>So that is what was happening!</p><blockquote>SUPER can <em>store</em> large values, but json_serialize() cannot <em>export</em> them back to VARCHAR.</blockquote><p>My largest polygon had 110,000+ characters of coordinates which is way beyond what the export function could handle.</p><p>At least now I knew why.</p><p><em>Strike two.</em></p><h3>Attempt #3: Split Large Polygons Across Rows?</h3><p>Getting desperate, I considered splitting each polygon’s coordinates across multiple rows and somehow reassembling them at query time.</p><p>I am very embarrassed that I even considered this. ST_Contains() needs the <em>complete</em> polygon to check if a point is inside. Half a polygon is not a valid geometry. You cannot run spatial functions on polygon fragments.</p><p><em>Strike three…</em></p><h3>The Solution: Convert to EWKB first</h3><p>After way too much Googling, I finally landed on the answer. <strong>Don’t store coordinates as text at all.</strong></p><p>Instead, convert your GeoJSON to Extended Well-Known Binary (EWKB) format <em>before</em> loading into Redshift. EWKB is a compact binary representation that loads directly into a GEOMETRY column with no runtime conversion needed.</p><p>Here is the Python script that finally got me unstuck:</p><pre>import json<br>import csv<br>from shapely.geometry import shape<br>from shapely import wkb<br><br>with open(&#39;lga_boundaries.geojson&#39;, &#39;r&#39;) as f:<br>    data = json.load(f)<br><br>with open(&#39;lga_boundaries_ewkb.csv&#39;, &#39;w&#39;, newline=&#39;&#39;) as csvfile:<br>    writer = csv.writer(csvfile)<br>    writer.writerow([&#39;state&#39;, &#39;lga&#39;, &#39;subsidy&#39;, &#39;geom&#39;])<br>    <br>    for feature in data[&#39;features&#39;]:<br>        props = feature[&#39;properties&#39;]<br>        geom = shape(feature[&#39;geometry&#39;])<br>        <br>        # Convert to EWKB with SRID 4326<br>        ewkb_hex = wkb.dumps(geom, hex=True, include_srid=True, srid=4326)<br>        <br>        writer.writerow([<br>            props[&#39;state&#39;],<br>            props[&#39;lga&#39;],<br>            props[&#39;subsidy&#39;],<br>            ewkb_hex])</pre><p>The resulting CSV looks like complete gibberish</p><pre>state,lga,subsidy,geom<br>Lagos,Ikeja,Level 1,0106000020E610000001000000010300000001000000...</pre><p>But that hex string is a complete, valid geometry that Redshift understands natively without conversion needed at query time. After creating the table with a GEOMETRY column, loading from S3 and verifying it…I was all valid! All MultiPolygons.</p><h3>The Final Query</h3><p>Now the spatial join is clean and simple</p><pre>SELECT<br>    c.customer_id,<br>    c.latitude,<br>    c.longitude,<br>    g.state AS lga_state,<br>    g.lga AS lga_name,<br>    g.subsidy<br>FROM customers c<br>LEFT JOIN lga_boundaries g<br>  ON ST_Contains(g.geom, ST_SetSRID(ST_Point(c.longitude, c.latitude), 4326));</pre><p>No string concatenation. No ST_GeomFromGeoJSON(). No silent NULLs. No SUPER export errors. Just a straightforward spatial join that actually works.</p><h3>Key Takeaways</h3><ol><li><strong>SUPER + string concatenation = silent failure.</strong> The query runs but your spatial join will return NULLs with no errors. Just empty results.</li><li><strong>json_serialize() will explicitly fail</strong> on large SUPER values with “SUPER value exceeds export size.” At least you’ll know why.</li><li><strong>EWKB is the answer.</strong> Convert GeoJSON to EWKB <em>before</em> loading not during queries.</li><li><strong>Use Shapely in Python. </strong>It handles the conversion in just a few lines of code. pip install shapely and you will be good to go.</li><li><strong>GEOMETRY columns in Redshift support up to ~1MB (1,048,447 bytes), </strong>which is<strong> </strong>plenty for most polygons. My largest was about 44KB after conversion.</li><li><strong>The SRID matters.</strong> Always use include_srid=True, srid=4326 when creating EWKB for lat/long data, or your spatial joins won&#39;t match correctly.</li></ol><h3>Now on Looker</h3><p>If your query tool throws a NullPointerException when you try to SELECT * from the table with a geometry column, that is expected. That is just the client choking on binary geometry data it cannot render. Query the other columns explicitly or use ST_AsText(geom) if you want to see the geometry as readable WKT.</p><h3>The Bottom Line</h3><p>Redshift <em>can</em> do spatial queries on large polygons. You just cannot convert them at runtime because you will either get silent failures or explicit export errors. Do the heavy lifting in Python, load as EWKB and let Redshift’s spatial engine do what it is actually designed for.</p><p>Hopefully, this will save you the same headache.</p><h3>Resources</h3><ul><li><a href="https://shapely.readthedocs.io/">Shapely Documentation</a></li><li><a href="https://docs.aws.amazon.com/redshift/latest/dg/geospatial-functions.html">Amazon Redshift Spatial Functions</a></li><li><a href="https://docs.aws.amazon.com/redshift/latest/dg/spatial-limitations.html">Considerations for Spatial Data in Redshift</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d41f55378abe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analytics Engineering Explained: Why I’m Not a Data Analyst or Data Engineer, yet.]]></title>
            <link>https://medium.com/@calenorose/analytics-engineering-explained-why-im-not-a-data-analyst-or-data-engineer-yet-3183aefde405?source=rss-1dd198a064d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3183aefde405</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[looker]]></category>
            <dc:creator><![CDATA[Rose Caleno]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 11:00:01 GMT</pubDate>
            <atom:updated>2026-01-26T18:56:08.640Z</atom:updated>
            <content:encoded><![CDATA[<p>Many times at work, someone from my team or another team asks me the same question.</p><p>“So… what exactly does an analytics engineer do? And why does your team sit in Data Engineering?”</p><p>The first few times, I tried the textbook answer from Google Search. Something about “bridging the gap between data engineering and analytics” and “transforming raw data into clean, reliable models.”</p><p>You can see the disinterest in their eyes. I don’t blame them.</p><p>So let me try something different. Let me show you what I actually do. Just a small part of what it is to be an Analytics Engineer using Looker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ce1DdHWdV-guU672JRpaTA.jpeg" /></figure><h3>“Can you just fix this Looker error real quick?”</h3><p>This is my favorite misconception. That what I do is quick.</p><p>Someone messages me, “Hey, this Look is broken. Can you take a look?” In their head, it is a five minute fix.</p><p>Sure, I could throw the query into an AI tool and have it spot the bottleneck in a minute. But where is the fun in that? Or the satisfaction in the aha moment when you finally trace a slow dashboard back to a join someone wrote two years ago that made sense then but is destroying performance now?</p><p>So here is what actually happens.</p><p>I open Looker. The look is timing out. So I check the explore. The explore is slow. Then I look at the underlying query. The query has seven joins, three of which are hitting tables with millions of rows and one derived table that has not been optimized since God knows when.</p><p>Now I am reading LookML I did not write, trying to understand why someone structured it this way. I am tracing dimensions back to their source. I am checking if the derived table even needs to exist anymore. I am looking at the joins, are they fanning out? (Oh, this happens a lot)</p><p>47 minutes later, I have found the problem. A join that made sense when the data was small is now destroying performance because the table grew 10x.</p><p>The “five minute fix” is actually an architecture problem that has been silently getting worse for months.</p><p>That is analytics engineering.</p><h3>What I actually do</h3><p>On any given day, you might find me</p><p><strong>Reading through your queries.</strong> Not writing them, just reading through existing ones. Trying to understand why this explore takes 5 minutes to load. Checking join patterns. Asking, “Did we really need this join, or did someone copy paste from another explore?”</p><p><strong>Cleaning up LookML.</strong> Derived tables built as quick fixes that became permanent. Measures that do almost the same thing but not quite. Dimensions that reference dimensions that reference dimensions until nobody knows the original source. I untangle these. I <em>try</em> to document them. I archive what we do not need.</p><p><strong>Knowing what measures exist.</strong> Sounds simple until you inherit a Looker instance with 200+ explores and thousands of fields. My job is to know what we have or know where to look.</p><p><strong>Building and managing DAGs.</strong> Some of my work lives in Airflow. Making sure data flows where it needs to go, in the right order, and builds at the right time.</p><p><strong>Automating my own work.</strong> I write Python scripts to speed up repetitive investigations. The faster I diagnose problems, the more time I have to actually fix them.</p><h3>So why am I not a Data Analyst?</h3><p>Data analysts ask business questions and find answers. They build dashboards. They tell stories with numbers.</p><p>I mostly make sure the data they are querying is reliable.</p><p>When an analyst typically opens Looker, they are trusting that the tables are structured correctly, the joins make sense, the existing measures are calculated correctly and everything runs in a reasonable time.</p><p>That trust? Someone has to build and maintain it. That is an analytics engineer.</p><p>I do not always answer business questions. I am mostly making sure the answers are possible.</p><h3>And why am I not a Data Engineer, yet?</h3><p>Data engineers build pipelines. They move data from point A to point B. They think about infrastructure, orchestration and scale.</p><p>I sometimes live downstream of that.</p><p>But here is where it gets blurry. Sometimes I am the one making data available on Looker for analysts. That CSV sitting in someone’s inbox? I’m converting it. That JSON file? I will transform it, load it into and make sure it lands where analysts can actually use it.</p><p>So I need to understand how data got here. Sometimes, when something breaks, I cannot just shrug and say, “not my pipeline.” I need to trace it back to the source. Knowing the full journey helps me troubleshoot faster.</p><p>The difference is focus. A data engineer is thinking about building and scaling the pipes. I am thinking about what comes out the other end. Is it clean? Is it modelled right? Can someone actually use this to answer a question?</p><p>My job is to transform data, model it and make it accessible. But I can’t do that well without understanding where it came from.</p><h3>Should you become an analytics engineer?</h3><p>If you are considering this path you need these skills</p><p><strong>Patience.</strong> A lot of this is detective work. You are inheriting systems you did not build, understanding decisions made by people who have left. But you need to make it work.</p><p><strong>Be okay with “boring” work.</strong> Optimization is not glamorous. Documentation is not glamorous. But it matters more than most visible work.</p><p><strong>Understand both worlds.</strong> You do not have to be an expert data engineer or analyst but you need enough fluency to speak both languages. And not the basics, speak them very well.</p><p><strong>Advocate for your own work.</strong> People will notautomatically understand what you do. Get comfortable explaining it over and over.</p><h3>Back to the question</h3><p>“What does an analytics engineer actually do?”</p><p>I make sure the data layer works fast, reliable, is documented and sensible. I am not building pipelines from scratch and I am not building dashboards for stakeholders. I am in the middle, making sure what the engineers built can actually be used by the analysts who need it.</p><p>If you have ever opened a dashboard that loaded instantly, queried a metric that matched other reports, or found exactly the dimension you needed, an analytics engineer probably had something to do with that.</p><p>You just did not notice. And honestly? That means I did my job. And I have AMAZING team members who do fantastic work in getting the job done.</p><blockquote>Are you an analytics engineer or someone considering the path? I would love to hear your story. Drop a comment or connect with me on <a href="https://www.linkedin.com/in/rose-caleno-9679a2168/">LinkedIn</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3183aefde405" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>