Snowflake Query History: What Really Ran

Category

Category

Search by Date Range

Date Range

Search all Articles

Active filters

Want to create a pdf of this page content to print or email? Click on icon.

Repositories Tell You What Was Intended. Snowflake Tells You What Actually Happened.

Repositories Tell You What Was Intended. Snowflake Tells You What Actually Happened.
snowflake query history
Your repo shows what was intended. Snowflake query history, access history and Time Travel show what actually ran. Here’s how we use them.

Whenever you drop into a new data project, you’re usually handed a graveyard of artifacts: job exports, static SQL scripts, and architecture diagrams that haven’t been updated in two years. You digest it all, map out a mental model of the pipeline, and start designing fixes based on that assumption. That’s exactly where Snowflake query history comes in.

Why the Repository Isn’t the Source of Truth

We faced this on one project where we spent weeks analyzing a job export, only to realize it was an outdated backup. The live production pipeline had evolved, but nobody had updated the repository. The code we were reviewing was flawless. It just wasn’t the code that was actually running.

The fix wasn’t a stricter code review process. It was a shift in mindset: before touching anything, force the platform to tell you what it’s doing. It turns out Snowflake is incredibly good at answering this, and it completely changed our workflow.

Snowflake Query History: See the SQL That Actually Ran

Snowflake query history is not just a basic audit log. We use it on day one to replace the most dangerous assumption in consulting: trusting the repo. When we look at the exact SQL that was executed, with all variables fully resolved, our analysis shifts from guessing to observing. We can finally reconcile the reference code against reality.

Snowflake Access History: Who’s Really Writing to Your Tables

Then there’s the question of who (or what) is actually writing to a table. Access history shows exactly which processes are writing objects and which identities are reading them. In that same engagement, it showed us that an entire environment people swore was driving production wasn’t writing anything at all. That single query saved us weeks of building elegant, well-tested data models that would have been completely useless for the overnight pipeline.

Use Execution History to Build a Timeline

If you rely on whoever touched a file last to figure out when things broke, you’re usually going to blame the wrong person. By grouping a year’s worth of execution history, you can spot the exact day a job’s behavior changed. You move from arguing about fault to simply establishing a timeline.

Snowflake Time Travel for Benchmarking, Not Just Recovery

Everyone sells Time Travel as a disaster recovery tool. We use it for benchmarking. If you build a fixed version of a table and compare it to the original, a silent upstream reload can completely skew your results. Pinning both sides of your comparison to the same Time Travel timestamp gives you a bulletproof “before and after” to defend in front of a client.

Solving the Mid-Run Problem

Time Travel also solves the mid-run problem. Some tables get overwritten multiple times in a single pipeline execution, so the data sitting there at 9:00 AM isn’t necessarily the state your fix needs to address. Anchoring to the specific query that performed a write lets you inspect the table exactly as it existed between steps. You get to validate your logic against the actual state it was meant to modify.

Snowflake Account Usage: Map Access Without a Meeting

Finally, Account Usage views let you map out the entire role, grant, and ownership structure without booking a single discovery meeting. Walking into a massive legacy data estate and accurately describing its access model on your second day builds more trust than a slide deck ever could.

The Catches

There are catches, of course. Execution history only knows what actually ran, so it won’t help you with code that exists but hasn’t been triggered. And Account Usage views have built-in latency. That’s well documented, but it’s incredibly easy to forget when you’re staring at a screen waiting for immediate confirmation.

Fix the System That Exists

None of these features are hidden. They ship out of the box, but most teams only remember they exist after something breaks. We pull them up first, before writing a single line of code. In mature estates, the pipelines are usually older than the tenure of the people maintaining them, and the repository has quietly drifted away from reality.

At the end of the day, the engineering work is the same. The only difference is whether you’re fixing the system that exists, or the one you assumed was there.

Work With Pomerol Partners

The good news is that we at Pomerol Partners can make this effort worthwhile. Our consultants are Snowflake specialists, certified through Snowflake and proven through experience.

At Pomerol Partners, we don’t just improve your data structure. We offer a DataOps 360 approach to your business.

Come and meet the human side of data.

More on what we do with Snowflake: pomerolpartners.com/partners/snowflake

Diego Brito
Senior Consultant


Snowflake Documentation

Monitor query activity with Query History

https://docs.snowflake.com/en/user-guide/ui-snowsight-activity

Understanding & using Time Travel

https://docs.snowflake.com/en/user-guide/data-time-travel

Account Usage

https://docs.snowflake.com/en/sql-reference/account-usage

Related Articles

The Pomerol Writeback Extension is TED accredited!

1 Exciting Bit of News about our Pomerol Writeback Extension!

The Pomerol Writeback Extension for Qlik Sense has been accredited!
3 Steps to Build a Successful Self-Service BI Project

3 Steps to Build a Successful Self-Service BI Project

Enabling your workforce with the information they need to make better business decisions is a win-win, and in today’s business environment that means building a self-service analytics platform.
5 Strategies for Creating a Powerful Data Department

5 Strategies for Creating a Powerful Data Department

Creating a powerful data department with data science
A Forecast is Your Average Parallel Universe

A Forecast Is Your Average Parallel Universe

A prediction is one representation of a range of possibilities (the middle), making a forecast your average parallel universe.
Self-storage data analytics: rows of storage units with blue roll-up doors at an outdoor facility.

Analytics Driven Operations for Self-Storage

Competition in self-storage is heating up, and margins are under pressure. See how Pomerol’s self-storage clients use data analytics in Qlik to spot risks early, cut delinquency, reduce tenant churn, and set smarter rates that raise lifetime value.
Business Intelligence Dashboards Pomerol Partners

Business Intelligence Dashboards and Tinder

Business intelligence dashboards require a strong first impression, clear communication, and the ability to engage users effectively.
Data and Analytics Glossary

Data & Analytics Glossary

This glossary covers 18 key concepts, from foundational storage and processing terms to cutting-edge AI technologies. Be sure to bookmark this page as your go-to.
Data Analytics 101: Business Basics for Success

Data Analytics 101: Business Basics for Success

Data integration, analytics, AI-powered insights, visualizations, governance.
Solving Business Intelligence Collaboration Challenges

Discover and Solve Business Intelligence Collaboration Challenges

It’s about delivering business intelligence data and insights to the far reaches of the organization in a timely, structured and governed way.
Expert Data Analytics Consultants: 6 Persuasive Reasons to Use Them

Expert Data Analytics Consultants: 6 Persuasive Reasons to Use Them

Data integration, analytics, AI-powered insights, visualizations, governance.
How to Build a Modern Data Warehouse

How to Build a Modern Data Warehouse

Discover the essential components of a modern data warehouse, including data ingestion, architecture, governance, and tools that maximize business insights and efficiency.
kodak company

Innovation Through Data Governance

Most organizations are sitting on enormous amounts of data they’ve never activated. Understanding what you have — really understanding it — creates competitive advantage. It can open entirely new revenue streams. 

Pomerol Partners Renews Snowflake Select Tier Partner Status

Pomerol Partners has officially renewed its status as a Snowflake Select Tier Partner, reaffirming its position among a select group of organizations recognized for deep platform expertise and a proven track record of client success on the Snowflake AI Data Cloud.
Maximizing Snowflake Performance for BI Products

Power Maximizing Snowflake Performance for BI Products

If your users and end customers are happy with the performance and use of our data warehouse, it means that we are moving in the right direction.
Learn About Seven (7) Common Machine Learning Project Pitfalls

Proven Seven (7) Machine Learning Project Pitfalls

There’s more to life than time series.
Smart Chicken's Inspiring Success: Leading the Way in BI and Analytics

Smart Chicken’s Inspiring Success: Leading the Way in BI and Analytics

Discover how Smart Chicken, a small-town poultry producer, is revolutionizing the industry with advanced BI and analytics with Pomerol Partners.

Snowflake Query History: What Really Ran

Your repository tells you what your team meant to build. Snowflake tells you what actually ran. Learn how we use Snowflake query history, access history, Time Travel and Account Usage views to understand legacy data pipelines before writing a single line of code, and fix the system that exists.
SQL Code Writing: Four Best Practices

SQL Code Writing: Four Best Practices

Let’s learn about four best practices surrounding SQL code development, performance, knowledge, and ethics for our data solutions.
Solving Problems Requires Creativity Pomerol Partners

Tech Solutions: How Creativity Solves Problems in Crisis Situations

In the face of a neighbor’s house fire, I was reminded that creativity and technology can work together to solve even the most unexpected problems.
wheels

Turning Data into Drive: Faster NetSuite Insights for Multi-Channel Retailers

A retailer struggled with reporting out of NetSuite. Pomerol provided faster insights, and now they’re on the road to AI.
Shopping Trolleys

Unlock Clear NetSuite Insights with Pomerol’s Qlik NetSuite Accelerator for Retail Sales

Our Accelerator for Qlik doesn’t just simplify NetSuite reporting—it fundamentally transforms how your business leverages data. Say goodbye to manual exports, kit confusion, and departmental discrepancies.
Why Data Quality Is Essential for Modern Business

Why Data Quality Is Essential for Modern Business

Strong leadership depends on strong data. Discover why data quality is a strategic priority for executives, how key dimensions impact decision‑making, and how modern tools like Qlik Talend help build trustworthy, AI‑ready data foundations.
Connecting Matillion Data to Snowflage Pomerol Partners

Your Guide to Connecting Matillion Data Loader to Snowflake

This guide is a walk-through of how to connect Matillion Data Loader (MDL) to a Snowflake cloud data platform account.