How Unity Catalog Views Change The Lakehouse and Enable Data Mesh

Unity Catalog represents a paradigm shift in many ways, but one of the most underappreciated elements is its views. These views represent a massive change to the way we think about the medallion architecture and the lakehouse. In addition to being a critical part of the effort to reduce the number of copies of data that exist around an organization’s data estate, they also can form the building blocks of Data Mesh and Data Fabric architectures and can even be leveraged to create data products, which all become especially powerful as an organization increases its data strategy maturity and its analytics maturity. With two conceptually simple features, Databricks has turned the view from a useful part of the data engineering toolbox into an indispensable tool for every architect and even for citizen developers, especially in the modern day of generative AI.

Before diving into the Unity Catalog, it’s important for us to define our terms, especially those that are a part of the Medallion architecture. This approach organizes data processing in three layers: bronze, silver, and gold.

  • The bronze layer is where raw data is ingested from various sources. This is the first step in the data processing pipeline, where data is collected and stored in its raw form.
  • In the silver layer, the data is cleansed, transformed, and enriched. This is where the data is processed and prepared for analysis, with any errors or inconsistencies being corrected.
  • The gold layer contains business-level aggregates and metrics that are ready for decision-making processes. This is the final stage of the data processing pipeline, where the data is presented in a form that is easily understandable and actionable for business users.

This tiered approach helps in managing data lineage clearly and efficiently, making it easier for organizations to trace how data transforms across its lifecycle. The Medallion architecture is by far the most common architecture for Lakehouses, and we will be referencing it throughout this piece, but Unity Catalog can work with any of the many different reference architectures, notably Data Vault 2.0 or Lambda.

A traditional medallion architecture layout.

Building Blocks for a new Lakehouse

By combining views with UDFs and Unity Catalog’s permission model, we start to build a new, more fluid approach. Users (or in the best practice, group members) are then able to see, using customized permissions, exactly what they are allowed to see, but only one object must exist. Even more powerfully, the view executes as the view’s owner, meaning that the user does not need permissions to either the underlying data, or to the functions that are used to make the view work.

Using this principal, there are three building blocks that can be used to create highly dynamic tables for end users:

  1. Row-Based Access Control – Users can be given access to only the rows that they need to do their jobs, limiting the scope of their access. This allows users to focus on what they need to do and prevents the accidental overexposure of data.
  2. Column-Level Access Control – Specific columns can be shown or hidden based on a user’s permissions. This allows fine-grained access to data while respecting both privacy and security.
  3. Dynamic Data Masking – When most people think of masking, they think of the kind of masking applied to credit card numbers, and that is definitely possible with Unity Catalog views, but there a whole universe of masking available to a developer in Databricks now. This dynamic masking can occur at a row or column level and can be used to restrict access to specific restricted information while still granting it to those with need to know. In this way, aggregations can be maintained without the need for complex rollup tables.

All these capabilities come together to provide a new, data governance integrated experience that allows for duplicate effort and data to be minimized across a data estate. With this end-users and citizen data scientists can be safely given access to data to enable them to use their domain-level expertise to find more possibilities. That brings us to an evolving paradigm in the data warehousing world.

A lakehouse created with views rather than copying data.

How Views Change the Lakehouse

In a traditional lakehouse, data is copied into each layer as it is transformed. This represents an opportunity for inconsistencies and stale – or even bad – data to become a part of our final analysis set. This copying also means that the entire data warehouse must be reloaded from scratch when changes are made, reducing the nimbleness of the data warehouse and making it impossible to represent as highly consistent and repeatable code, rather than changeable and expensive data. The view changes this, but making it possible to reduce the number of copies of the data from three (or more) to just two – the data in the bronze layer that has not yet been transformed, and the clean enriched data in the silver layer. Gold simply becomes a view (or many views) on top of the silver layer.

This change drastically reduces the amount of work needed to create a secure lakehouse. Under previous models, it would often be necessary to create entirely different tables for each persona, and move data into them, creating significant delays and data duplication. This also introduced an opportunity for data to become out of sync, or for the wrong data to be copied into the wrong place. Increasing the risk of a lakehouse compared to a traditional data warehouse.

Enabling Data Products and Data Mesh

This makes Unity Catalog views an ideal way to represent data products and to build into a Data Mesh architecture. By creating a pattern that can be used to represent both complex, IT/Data driven data products as well as local, departmentally produced data products, the paradigm builds the foundation for a true data mesh architecture.

An illustration of a Lakehouse as a data product.

Non-IT organizations can build out and provide their own data products based on data that they have that is integral to a specific use case, and customize it to many different personas – and these personas do not have to be the same personas used by other data products – each data product can be totally a totally independent member of the organizations data estate.

Following on to that, though, is the ability for views (and these view-based data products) to build upon other views. This truly exemplifies the data mesh architecture, and the dynamic way all these data models interact can give a persona truly bespoke data model access. Not simply to the specific rows and records that they need, but customizing data display within those records, ensuring that data availability is maximized while data privacy and data security are not compromised.

An illustration of different data products interacting together and building on top of eachother.

Unity Catalog represents a significant shift in the way we think about data management and the Medallion architecture. By reducing the number of copies of data and enabling the use of views, the Unity Catalog improves data governance and reduces the risk of inconsistencies and stale data. Furthermore, the Unity Catalog enables the creation of data products and the implementation of a data mesh architecture, allowing for more dynamic and flexible data management. Overall, the Unity Catalog has the potential to revolutionize the way organizations manage their data, improving efficiency, security, and flexibility.

From Medallion to Mesh: How Unity Catalog Transforms Data Strategy

I wrote up some thoughts on how Databricks’ Unity Catalog Views change the way we should be thinking about lakehouses, and bout how they enable data mesh architectures on the Neudesic Innovation channel on Medium

https://medium.com/neudesic-innovation/from-medallion-to-mesh-how-unity-catalog-transforms-data-strategy-0b092a8e5941

Fusion Development 5 – Conclusion

In sectors ranging from education to healthcare, finance to e-commerce, the digital revolution is reshaping how organizations operate. As illustrated by Maple Elementary School’s tech-driven metamorphosis, frontline professionals can leverage technology in ways previously deemed the exclusive domain of IT specialists. However, this paradigm shift necessitates a deeper evolution within the IT and Analytics teams, who now bear the dual responsibility of fostering innovation while ensuring the sanctity of data, especially sensitive information like student details.

1. Embracing a Collaborative Mindset:

Old Approach: IT departments, whether in schools or corporations, often functioned in silos, creating a disconnect between solution developers and end-users.

The Shift: Foster a culture of collaboration. Open channels of communication ensure that IT solutions resonate with real-world needs and are adaptable across sectors.

2. Democratization over Gatekeeping:

Old Fear: The specter of “shadow IT” loomed large – unauthorized solutions that bypass the IT department.

The Shift: Instead of stifling these grassroots innovations, guide and nurture them. Offer platforms, like the Power Platform, but ensure they’re designed to adhere to industry-specific regulations and standards.

3. Continuous Education and Training:

Old Approach: Tools and platforms were handed down without adequate training.

The Shift: Regular workshops and training sessions, tailored to the specifics of the industry – be it education’s focus on pedagogy or finance’s emphasis on data security – can foster competent, confident users.

4. Agile and Flexible Development:

Old Approach: Lengthy, rigid development cycles that couldn’t adapt to evolving needs.

The Shift: Adopt an agile methodology. This iterative, feedback-driven approach ensures solutions remain relevant, whether in a classroom setting or a corporate boardroom.

5. Prioritizing Data Accessibility While Ensuring Security:

Old Fear: Concerns over data misuse led to limiting data access.

The Shift: IT teams should strike a balance. While ensuring data is accessible and usable, robust security measures need to be in place. This is especially crucial in sectors like education and healthcare, where sensitive data is paramount. Data encryption, multi-factor authentication, and regular audits are non-negotiable.

6. Celebrating and Encouraging Grassroots Innovation:

Old Approach: A top-down perspective of IT solutions.

The Shift: Recognize that innovation can stem from any level. Whether it’s a teacher like Lisa or a finance executive spotting a workflow inefficiency, grassroots innovations have the power to transform.

7. Vigilance Towards Privacy and Security:

Old Approach: A generic, one-size-fits-all approach to data security.

The Shift: Given the increasing emphasis on personal data protection, with regulations like GDPR and CCPA coming into the spotlight, IT departments need to ensure that solutions are tailored to comply with sector-specific data protection standards. Especially in sectors like education, where children’s data is involved, vigilance is paramount.

Pioneers of the New Digital Era

While the digital stories at Maple Elementary underscore the potential of user-driven tech integration, they also hint at the unsung backbone enabling these transformations: the IT and Analytics teams. As organizations worldwide pivot to this new digital-centric model, these teams stand at the helm, ensuring that innovation thrives in a secure, compliant environment.

In this new era, IT isn’t just about supporting operations; it’s about pioneering change. By fostering innovation and ensuring the sanctity of data, IT and Analytics teams are sculpting the future, one digital solution at a time.

Fusion Development 4 – Bringing it all together

Standalone tools often provide solutions to specific problems, but when these tools come together, harmonizing their individual strengths, the resulting impact is magnified. At Maple Elementary School, we’ve witnessed the transformative power of individual solutions, from Sarah’s analytical dashboards to Tom and Elaine’s intuitive apps. However, the real magic unfurls when these tools intertwine, and Lisa’s journey as a dedicated teacher is a testament to this.

Lisa’s Vision: A Holistic Reading App

Lisa, an experienced fifth-grade teacher at Maple Elementary, had been observing the digital initiatives of her colleagues. Inspired by their successes, she envisioned an app that would be a one-stop solution for her students – a place where they could set reading goals, submit reflective responses, track their progress, and be rewarded for their achievements.

Lisa’s Reading Galaxy App

With the Power Platform at her disposal, Lisa began crafting the Reading Galaxy App. Leveraging the PowerApps, she built an interactive interface allowing students to:

Set Personalized Goals: Using insights from Sarah’s dashboards, students could see their current reading levels and set progressive targets for themselves.

Submit Reflections: Drawing from Tom’s Feedback Loop, Lisa integrated a section for students to submit their thoughts and feelings on their readings.

Earn Badges: Inspired by Elaine’s emoticon feature, Lisa added a gamified element. As students hit milestones or showed significant growth, they were awarded digital badges, visible on their profiles.

The true genius of Lisa’s app lay in its connectivity. By linking it with PowerBI, data from students’ goals and reflections were fed into Sarah’s analytics, further enriching the insights. The badges, awarded based on data points from Tom’s and Elaine’s apps, ensured that they were both reflective of effort and achievement.

The Reading Galaxy App was an immediate sensation in her class. Students were more engaged, taking ownership of their reading journeys. The badge system introduced a healthy competitive spirit, motivating students to push their boundaries. The reflections not only enhanced comprehension but also fostered a deeper emotional connection to the texts.

The Power of Availability and Integration

Lisa’s journey underscores two fundamental truths:

Availability Matters: Having tools like the Power Platform readily available democratizes innovation. Lisa, like her colleagues, wasn’t an IT specialist. Yet, with the right tools at her fingertips, she crafted a solution with a profound impact.

Integration Amplifies Impact: Standalone tools have their merits, but integrated solutions harness collective strengths. By drawing from Sarah’s, Tom’s, and Elaine’s tools, Lisa’s app offered a comprehensive solution, addressing multiple facets of the reading journey.

The Future is Integrated

The success stories from Maple Elementary – from Sarah’s analytics to Lisa’s holistic app – highlight the boundless potential of integrated tech solutions:

Sarah’s Dashboard: Offering deep, data-driven insights.

Tom’s Feedback Loop App: Providing timely, actionable feedback.

Elaine’s Reading Progress Tracker: Merging academic metrics with emotional well-being.

Lisa’s Reading Galaxy App: Crafting a holistic, engaging reading journey for students.

Today, the true potential of technology lies not just in individual solutions, but in the seamless integration of these solutions. As more educators like Lisa harness the power of available tools, and synergize them to craft holistic solutions, the future of education is not just bright – it’s dazzling.

Fusion Development 3 – Citizen Developers

In a time defined by its rapid technological advances, the democratization of technology is a game-changer. The rise of ‘citizen data analysts’ is a testament to this, with individuals like Sarah leading the charge in reshaping how we approach data. Parallelly, a new breed of innovators is emerging: “citizen developers”. These are passionate individuals who, despite lacking formal IT training, are crafting solutions tailored to their specific needs, thanks to Microsoft’s Power Platform.

Tom and Elaine: The Unlikely Developers

Tom and Elaine, both members of Maple Elementary School faculty, share Sarah’s commitment to student success. Their passion for fostering reading skills led them down a path neither expected: app development. With the Power Platform’s PowerApps, they turned their visions into reality.

Tom’s Feedback Loop App

Tom always believed in the power of timely feedback. However, he noticed that the conventional feedback mechanisms were often delayed, causing students to miss out on timely course correction. Drawing inspiration from this, Tom ventured into PowerApps. Using its intuitive interface, he pieced together the Feedback Loop App. The drag-and-drop functionality allowed him to design an interface that was both visually appealing and user-friendly. With the app’s built-in connectors, he integrated it with the school’s database, ensuring real-time data synchronization.

The app transformed the feedback process. As students read aloud, teachers could immediately record observations, categorizing them under fluency, comprehension, and pronunciation. By week’s end, the app auto-generated a comprehensive report, bridging the communication gap between parents and students. By providing this immediate feedback, Tom ensured that students could adjust swiftly, fostering a more agile learning environment.

Elaine’s Reading Progress Tracker

Elaine, deeply attuned to her students’ emotional and academic needs, envisioned a tool that would capture more than just reading metrics. PowerApps became her platform of choice. Elaine utilized PowerApps’ template library, selecting one tailored for progress tracking. She then personalized it, adding unique fields for daily achievements, word logs, and emotional reflections. The emoticon-based emotional check-in was a masterstroke, letting students choose from a variety of emoji’s to record how they were feeling at a particular time of day.

The Reading Progress Tracker became an instant hit. Students enjoyed the gamified aspect of logging their progress, and the visual representation of their reading journey motivated them further. The emoticon feature proved invaluable, offering Elaine insights into students’ emotional states. If a student consistently logged negative emotions post-reading, Elaine could provide timely emotional and academic interventions.

Collaboration: The Power Trio

Sarah, recognizing the potential of her colleagues’ innovations, wanted to integrate them in with her dashboard. Using PowerApps’ connectivity with PowerBI, she brought in the data from Tom’s feedback app and Elaine’s tracker into her dashboard. This not only streamlined her data gathering process but also enriched her insights.

Together, the trio’s tools offered a 360-degree view of the students’ reading journey. Tom’s app provided actionable feedback, Elaine’s tool tracked progress and emotions, and Sarah’s dashboard synthesized this data, offering rich, data-driven insights. This tools ensured that students received comprehensive support, both academically and emotionally. After Sarah, Tom, and Elaine had used the suite of tools enough to be confident that they were workable and stable, they even published them to the other members of the Maple Elementary School faculty.

The Power Platform’s Potential Unleashed

The success stories of the Feedback Loop App and the Reading Progress Tracker underscore the boundless potential of the Power Platform:

Feedback Loop App: Transforming feedback into real-time, actionable insights.

Reading Progress Tracker: Capturing the holistic reading journey, merging academic metrics with emotional well-being.

Tom and Elaine, empowered by the Power Platform, have transcended their traditional roles, becoming pioneers of tailor-made, impactful solutions. Their journey symbolizes the promise of the Power Platform, proving that with the right tools, passion can indeed translate into innovation. In this tech-driven era, citizen developers like Tom and Elaine are not just the future; they’re the present.