HP's Data Platform Migration Journey: Redshift to Lakehouse
Summary
- Cost and performance gains: HP achieved 30–40% cost savings by migrating from AWS Redshift to a scalable Databricks lakehouse, leveraging Liquid Clustering, Photon, and predictive optimization.
- Isolated team resources: The lakehouse architecture provides scalable, isolated resources for different data consumers and ETL workloads, improving performance across diverse query types.
- Multi-team governance: Unity Catalog enables HP to manage multiple internal teams' access and data products efficiently while simplifying ETL migrations using modern Databricks features.
HP's Data Platform Migration Journey: Redshift to Lakehouse

Talk by Isaac Chan, Data Engineer, HP Inc. ; Kavya Atmakuri, Lead Data Engineer, HP Inc
HP Print's data platform team took on a migration from a monolithic, shared resource of AWS Redshift, to a modular and scalable data ecosystem on Databricks lakehouse. The result was 30–40% cost savings, scalable and isolated resources for different data consumers and ETL workloads, and performance optimization for a variety of query types. Through this migration, there were technical challenges and learnings relating to the ETL migrations with DBT, new Databricks features like Liquid Clustering, predictive optimization, Photon, SQL serverless warehouses, managing multiple teams on Unity Catalog, and others. This presentation dives into both the business and technical sides of this migration. Come along as we share our key takeaways from this journey.
Here's more to explore:
The best data warehouse is a lakehouse: https://www.databricks.com/product/databricks-sql
How to migrate legacy data warehouses: https://www.databricks.com/resources/ebook/migrate-your-legacy-data-warehouse-databricks
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements
Chapters
0:00Introduction to the project1:09Pre-migration architecture4:30Platform analysis9:47Migration strategy12:37Development and testing15:29Addressing SQL nuances19:45Performance optimization22:36Validation and onboarding28:32Results and conclusion
FAQs
Why did HP migrate from AWS Redshift to Databricks?
The monolithic Redshift environment could not provide scalable, isolated resources for different teams. HP needed modern features like Liquid Clustering, Photon, and predictive optimization for cost and performance improvements.
What cost and performance results did HP achieve?
HP realized 30–40% cost savings, improved query performance for diverse workload types, and better resource isolation for 110 million printers, 35 million apps, and 18 million PCs generating data continuously.
best platforms for data platform migration?
This video shares HP migration journey from Amazon Redshift to a Databricks lakehouse. The company faced challenges with Redshift cost scaling and limited AI capabilities, while the Databricks Data and AI platform provides unified analytics and AI on a cost-efficient, open data architecture. The case study demonstrates how existing Redshift SQL investments migrate seamlessly.
how to use data warehouse for marketing?
This video covers how HP leveraged its migrated data platform for marketing analytics and customer intelligence. The Databricks Data and AI platform enabled unified customer views and real-time personalization dashboards difficult to achieve on traditional warehouses. The open architecture supports both SQL analytics and ML-driven marketing applications.
What Databricks features enabled the migration success?
Key features included Liquid Clustering for optimal data organization, Photon for accelerated SQL queries, Serverless SQL Warehouses for elasticity, and predictive optimization for automatic performance tuning.
Full transcript
0:00 Introduction to the project
Hi everyone. Thanks for coming to our session today. I'm sure everyone's had a long day of attending different sessions. So hopefully everyone still feels energized and has had a great week so far. We'll be talking about a data platform migration journey we did at HP from starting with AWS Redshift and then transitioning to data bricks lakehouse. Let's start with a quick poll. Raise your hand if you've gone through or are planning a similar migration.
Okay, just a couple. Fantastic. Uh for those of you who have already done a migration, let's compare experiences after this talk. For those of you who are planning a similar migration, we'll give you an overview of our journey today. During this session, we'll give an overview of our platform before the migration. Then we'll dive deeper into details we discovered and then we'll close with some results after the migration was completed.
We'll throw a lot of information at you as we walk through our migration journey. So you can always refer back to these slides for a second look. This is Cavia. We're both lead data engineers at HP. We work for HP's central data platform organization. Our platform ingests data from millions of consumer and enterprise devices. We receive data from approximately 110 million printers, 35 million applications, 18 million PCs.
1:09 Pre-migration architecture
These devices and applications, they send data in real time. Using this data, we build central foundational data products for shared leverage. These data products might be pre-joined, aggregated, optimized for analytics, and more. We have data products as old as 10 years. Many of the platform decisions made then have had room to be modernized and improved with today's technology, especially with more and more teams around HP requesting access to the data that we store.
We partner with many internal HP teams coming from various business units around the company who use this data for troubleshooting hardware and software, forecasting supply chain requirements, executive dashboards for market share, make market decisions for new products and many other use cases. Generally here we follow ETL patterns with some ELT for analytics ready data products. We use data bricks sparkl for ingestion and data normalization and before the migration we used AWS redshift as a primary consumption layer to show a highle data flow pre-migration we receive consented data from printers apps and PCs which land as a raw format in an S3 bucket.
This data is then cleansed and turned into a semi- raw bronze data lake. This cleansing is done via datab bricks. The data is then copied into a shared breadshift warehouse where it's transformed into an analytics ready silver product. Business teams can use this data directly for business intelligence analytics or build gold data products themselves. BI tools and dashboards, they can be pointed directly at Redshift.
But there might also be another round of copying data back into S3 for machine learning and AI use cases using data bricks. Another detail to add, redshift warehouses were typically provisioned one per business unit and then shared with all users. This resulted in some scaling problems and resource contention causing problems like balancing compute resources between scheduled ETL jobs and ad hoc analyst queries. uh as an example, sometimes a poorly written query can take over uh compute resources for that cluster and then create bottlenecks for other users or other ETL processes.
So as a quick summary, uh we already used data bricks for initial ingestion and some ML AI use cases which are both the beginning uh and the end of the data flow. Semi- raw data is copied into the Redshift warehouse regularly for silver transformations. uh data may also be copied out of Redshift into S3 uh for some data bricks ML AI work and then Redshift warehouses they grew in size and cost over the years which caused issues with scaling.
So as we realized the pain points with our architecture we started looking around for alternatives to the Redshift warehouse. databick SQL came up as a good option for us. But to make an informed decision, we had to really understand the similarities and differences between these two offerings and understand how they applied to HP's use cases. So we went ahead and did a platform analysis. As Isaac explained, with our old architecture, we had to copy data from our bronze S3 lakes into Redshift in order to create silver data products.
4:30 Platform analysis
And in some cases, we even move them back into S3 to enable ML and AI use cases. The lakehouse gives us one platform that meets all of our ingestion, analytics, and AI needs, removing the need for this constant movement of data. Redshift has strong coupling between storage and compute. This means that producers and consumers of data products have to be on the same warehouse in order to allow data to be easily shared.
Red Shift's data sharing solution has limitations that were just not meeting our needs and this ties back to why we had one large warehouse that is being shared across hundreds of users uh per BU. On the other hand, in the databicks lakehouse, storage and compute are fully isolated and this can enable us to instantiate separate compute for each team without having to worry about how to share data between them. The shared compute on Redshift became a pain point for us.
One badly written query could bring hundreds of users down to a halt and solutions like Red Shift's workload manager was resulting in important production jobs taking precedence over users ad hocs which are still equally important for the business. With serverless SQL warehouses, the spin up time is quick and no state is lost when the warehouse is turned off. And so have being able to create this separate compute per team means that teams won't face any resource contention issues any longer.
And we can also track costs easily by allocating them per team per warehouse. We had prepurchased reserve instances on Redshift to save on costs. But with as any organization faces with constantly increasing data volumes and more users being onboarded we reached a tipping point and we had to add on demand nodes on and off to be able to run large production jobs. Moving to serverless SQL warehouses on datab bricks could remove this problem for us.
Each team can scale their compute based on their own needs and we won't be restricted by reserved instances anymore. As data engineers, we all run into situations where builds get delayed due to things out of our control. Data quality issues, upstream data availability, and so on. Having the option to scale up compute and speed up our runs to still meet SLAs's can help us feel a lot more in control. When it comes to the user experience side of things, Redshift only provides us with very highle query plans and metrics.
So if I had a query running for days together, we could not tell is the query progressing along. Are we still reading in the data or are we just about to write out the data? How do I improve this query? It's all very blackbox. The query profile and the spark UI in databick SQL can be game changers in this regard. They're very actionable. We can correlate lines of SQL code to stages in the query plan and the met the metrics given per stage can help us identify bottlenecks, track progress and be more informed of what is going on.
When it comes to the SQL capabilities with Redshift, we have very traditional SQ SQL capabilities. The lakehouse expands on top of these with a richer function set including map functions, lambda functions and now even AI AI functions all enabling modern analytics. Our red shift warehouses have been around for 10 plus years. Users are very comfortable and familiar with the technology and we have wellestablished integrations with different BI tools.
As with every new platform, there comes associated a steep learning curve that users have to scale. And this migration is no different. As we go over our migration journey, you'll see how we leverage the strengths of the lakehouse to improve our data platform and overcome the pain points that we were feeling. Quickly looking back to the pre-migration data flow. Just want to highlight the movement of data that we were referring to between the S3 lakes and the red shift warehouses.
With this migration, we swapped out this red shift warehouse layer with datab bricks SQL warehouses. So post migration this is what our end toend architecture looked like. All of our processing is now happening within the data bricks environment starting from ingestion all the way till analytics and ML and AI to show our highle migration plan from starting with redshift and then transitioning to the lakehouse. We first start with platform analysis which cavia covered in the previous slides.
9:47 Migration strategy
There were aspects of both technical benefits and cost analysis which I'm sure everyone here is familiar with to convince your management it's a good idea to do a migration like this in our platform. We host both platform owned foundational data products and partner owned data products. We duplicate these in the lakehouse environment so that we can easily compare them uh between the two systems and make sure that the data is equivalent.
Once we're confident in these data products, we can deprecate the Redshift versions and eventually sunset the Redshift instance. This gives a period of transition for the end users and helps us scale down the Redshift instance as more and more end users move away from it. It helped us stagger the move of end users off of Redshift so that we can work with partners one by one on their use cases and slowly scale down the usage of Redshift.
This does result in a period of maintaining both Redshift and Lakehouse resources and costs, but it gave a much smoother transition for our partners. Our platform consists of many data products. This is a simplified example of one data product architecture that was migrated within Redshift. Here uh we use DBT to execute many of our ETL ELT processes. bronze data or semi- raw data sets. It's first copied into Redshift.
From there, we have models that might perform joins to enrichment data sets, for example, and then create data marts. Data might need to be copied again outside to S3 for MLAI use cases with data bricks. But we can connect BI tools like looker, PowerBI, and thspot directly to Redshift. Ad hoc queries can also be run from Redshift. And lastly, business data products. They can be built from the Redshift products using DBT or look ML post migration DBT architecture.
It stays mostly the same, which simplified the migration for so many data products that our organization hosts and maintains. We don't need a separate step to copy our semi- raw bronze data sets into an external warehouse because that data is already within data bricks. We can still use DBT executed within data bricks and we don't have to copy data out in order to use data bicks MLAI BI tools ad hoc queries and business data products they can still be created using data bricks SQL warehouses or even other data bricks tools existing dashboards uh on BI tools they can be configured to point at data bricks SQL warehouses with pretty minimal changes required.
So now that you have a background on the what and the why behind the migration, let's take a look at the how. So how did we go about doing this migration? We faced a lot of challenges and had a lot of learnings through this process that we would like to share with you all today. So we broke down the migration for each project into logical chunks and developed timelines around them in order to help with cross team collaboration and budgeting.
12:37 Development and testing
So every migration started with needing their upstream data dependencies available in the lakehouse. For us since our ingestion was already happening into S3 data links we only had to set up the correct access control around them uh to be able to use these bronze data products. In some cases further downstream, we made static copies of our red shift data sets available in Unity catalog to unblock teams. We then moved on to setting up resources for every project.
This included Unity catalogs, SQL warehouses, service principles and so on for developers to start testing with. Alongside this, our platform operations team was setting up automation to manage all of this infrastructure as code using Terraform. Since we have DBT projects, we had to migrate from the DBT Redshift adapter to start using the DBT datab bricks adapter which mostly in involve configuration changes. But along with this, there was a SQL migration to convert Redshift SQL to databick SQL.
While the syntax is quite similar, there are some nuances and gotchas that we'll dive into in the next section. Post code migration, we moved on to dev testing and validation. With these small dev data sets, we focus on doing full deep compares with our red shift results to ensure correctness before moving on to expensive production testing. Once we got good results on dev came the production testing which revealed issues with scaling and eventually uncovered some bad queries.
In these situations, we had to go back to the whiteboard and come up with new solutions to leverage the strengths of Spark. Following this was thorough validation of the data products. Not only for us to gain validation in the new code uh to gain confidence in the new code but also for our partners to trust the new data product. We use data from Redshift as our source of truth and verify the new results. Once the consumers started using the data, we use their feedback to optimize the data products to meet their needs better.
We use methods like liquid clustering, predictive optimization, and data skipping stats collection to tune the data products to suit their needs. I wanted to highlight a few examples of SQL syntax differences between Redshift SQL and data bricks SQL. These were usually discovered during uh the data product migration development. These two functions here bitwise operator and system date require a different function shift left and current time stamp in data bricks SQL.
15:29 Addressing SQL nuances
These are examples of functions that will error out if ran in data bricks because the functions they don't exist. In this next example here for integer division, Redshift uses the slash operator that returns an integer. In this example, 5 / two returns two. Data bricks slash operator on the other hand returns a float. For the same functionality, we have to use the div operator. Using the slash returns 2. 5, using the div operator returns two.
Some of the same functions or operators like this can return different results which makes it hard to debug. The last function here is an interesting example where the same function exists in Redshift and data bricks SQL flavors. This is a simple date diff function returning difference between two dates. We use this function really heavily in data products for window functions and aggregations. In this example, the two dates we're comparing is the last day of 2008 and the first day of 2009.
Redshift's behavior is to consider the unit of the date diff function, in this case year, and return the difference of that unit. In this example, the difference between the years is 2009US 2008. So the function returns one. The same function in data bricks returns the difference of the two timestamps themselves and then rounds to the unit. The same function returns zero because there's only one day of difference between the dates.
One day rounded to a year results in zero. Overall, it's important to debug and understand the differences in SQL syntax. Otherwise, it's easy to make mistakes when migrating a lot of code. Small differences like this can cascade downstream and accidentally affect forecasts or other precise calculations. Another example of SQL syntax differences is lateral column aliasing. Redshift is more lax about this. In this select statement here, we're creating a column B and then directly referencing it in the wear condition here.
All within the same statement. This statement, it works in Redshift. But running the same select statement will error out in datab bricks because data bicks doesn't see that column B exists yet. The workaround is to create a extra common table expression or CTE creating column B first uh before referencing it in a subsequent select statement. We had used this feature lateral column aliasing in Redshift SQL for years unknowingly.
It caused a lot of code changes during our migration to find this out. When we discovered this, data bricks team uh they were really helpful in helping us debug and test fixes and private previews. This behavior was actually even more constrained before, but we worked together with the data bricks team to improve lateral column aliasing. This migration was a good opportunity for us to rethink design choices. One of our SQL models written more than 10 years ago was a complex monolithic SQL query transforming and writing about 60 billion records.
Given this was an atomic operation, any failure meant that the entire query had to be rerun, losing precious minutes and dollars. Moving to the lakehouse allowed us to leverage structured streaming to turn this into a fall tolerant process. We now have access to many configuration options and can make runs go faster if needed. We have the checkpoints that are created as part of the streaming allow us to pause and resume the jobs whenever needed without losing progress.
And we were able to achieve this while maintaining comparable runtimes and costs. While trying to scale various pipelines across different stacks, we can make use of the SQL query profile provided by datab bricks to help determine warehouse sizing. Metrics like the spill to disk give us a good indication of when to change the warehouse size. And on average, we were observing good performance to cost ratios as we changed warehouse sizes, which helped make our decision our warehouse sizing decisions easier.
19:45 Performance optimization
Another place that the query profile has helped us was with discovering pitfalls in our code. In one such situation, we had a query that took almost 9 hours to run on 14 nodes of R316 XL on Redshift, which is a very large warehouse and we could never figure out why it was so slow. When we tried to run this on a 3XL databick SQL warehouse, it just seemed to be struggling. There was a lot of spill to disk and the live query plan showed us that the query was not really progressing.
When we investigated the query profile and the Spark UI, we noticed that all of the data was being processed by a single Spark node very early on in the process. You'll also see that the query plan over here is a bunch of tasks that are set up to run serially one after the other and that there's not much parallelization in the query plan. This was a red flag for us. Using the visual query plan, we were able to narrow down the cost to a single window function which turned out to be a partitionless window function.
So this window function was forcing all of the data to be processed in one single spark node and other stages could not be run in parallel. And all this window function is doing is calculating the maximum value of a time stamp just in a very inefficient way. And so once we figured this out, the fix was simple. We just swapped out the window function for a regular aggregation and notice an an immediate improvement. The query completed in under 3 and 1/2 hours on the same 3XL warehouse.
Looking at the Spark UI, we could see the task is now being shared across nodes just like it was meant to be. And the query plan also looked a lot more parallelized. You'll see that the new query plan shows a lot more branching early on in the process. This is a zoomedin view of the initial part of the query compared to the old plan where not many tasks are being run in parallel. So having access to this rich set of metrics from the datab brick SQL warehouse means that analysts and developers now feel empowered to understand how their queries are being processed, debug and improve their queries using quality metrics and just not feel like the database is a black box.
22:36 Validation and onboarding
A few slides ago we talked about replicating data products in both Redshift and the lakehouse. When migrating data pipelines between two different platforms, pipeline logic needs to be translated, which can introduce a lot of new bugs. Different strategies are possible to do manually, like spot checks on primary keys or testing translated logic individually, but that's not really a scalable solution, especially for tables that contain 100 million rows or more.
We work together with the data bricks team to build an automated notebook that first pulls data from redshift as a dataf frame and then compares it against the lakehouse dataf frame. It starts with hashing each row from redshift and the lakehouse and then joins on the primary keys so that we can compare the rows that don't match. This helps us isolate rows to debug. The notebook can also interle columns between red shift and lakehouse into a single data frame so that we can compare values side by side.
The comparison does type checks and has configuration for float precision forgiveness for a specified number of decimals. So that helps con considering floats with eight decimals to be equivalent. For example, this is a dashboard output of the notebook. We can configure the notebook to run as a job. um we can filter data to be a certain time window that we want to compare. Over here on the right side there's some metrics about number of data bricks rows, number of red shift rows and then the differences between them.
There's a graphical representation on the left so that we can see it really quickly. And then there's a tabler view with more details below. Overall, these AB comparisons, they helped us discover some upstream data differences as well as SQL functionality between Redshift and data brick SQL. For example, we talked about that division operator that looks the same but performs differently. This type of validation helps us discover those differences.
It also had the benefit of giving confidence to partners for data quality between the new lakehouse platform and Redshift. We can show them this dashboard and we can give them a view that their data is the same. Once data products are available for partner consumption in the lakehouse, we can optimize them for usage. In Redshift, we use distribution and sort keys. In the lakehouse, we mirrored this with partitioning and zordering.
During the migration, liquid clustering was announced in public preview. This gave us added flexibility to handle changing access patterns without having to rewrite huge data lakes and handling skew in data distribution seamlessly. After implementing liquid clustering, we saw pretty equivalent performance with more benefits to future extensibility and a simplified clustering keys compared to partitioning and zordering.
Optimize and vacuum on delta lakes. We implemented this a long time a long time back. We implemented optimize as a post hook in dbt after every model run and then vacuums were configured as separate spark jobs to run periodically. Predictive optimization was later released and we adopted this really quickly. We removed dbt post hooks and external vacuum jobs. Since the optimized hooks were run after every dbt model, it included this time in the overall pipeline runtime.
Predictive optimization let us decouple that which gave us p faster pipeline runtimes to meet SLAs's. Both liquid clustering and predictive optimization helped benefit us by optimizing engineering time. We could remove steps that needed to be monitored and we could allow data bricks to determine the best time to run these operations. This is one example of some learnings um how BI tools interact with data bricks compared to other databases.
Uh we found that looker can automatically create queries with some unintended consequences. In this query here, a timestamp column, it's casted to a string. When it's executed by a data brick SQL warehouse, it will not properly prune the files or skip data even when that data set is liquid clustered on that timestamp column. We were able to fix this by explicitly defining the data type in Look ML, which stops Looker from casting it to a string.
This change gave our partner a fast query because the wear condition could properly fil uh skip data when filtering on a liquid clustered data set. These kinds of issues, they're hard to discover. Uh it makes it important to work on both internal and partner optimization end to end across the migration. Through this migration, we migrated more than 400 platform partners. Each partner team has their own UC cataloges provisioned with read access granted to core data products that are owned by the platform.
Different teams they use a variety of analytic and BI tools like looker, PowerBI and thspot. Partner teams they have data brick SQL warehouses provisioned for their team that helps with resource isolation and usage based spending. It helped create a model where the data platform can easily crosscharge for usage and then teams take more responsibility for their usage and resource needs. BI tools, they're then connected to these team owned SQL warehouses.
This helps access and privacy be limited to that team's use case and allows for a better data governance model. The warehouses, they can be sized and scaled for a availability need. For example, if we have a dashboard that's just refreshed once a week, that might only need an extra small warehouse. Or if we have consistent development in a large team, they might benefit from horizontal scaling, like 15 clusters, for example.
As you would have realized, we've gone through a journey filled with learning so far. While we're still in the process of migrating some of our platform, we've seen great results with the pipelines that have already moved over. We have successfully migrated six complex DBT projects, more than 70 BI dashboards and 40 45 plus partner teams over to the lakehouse environment with no missed SLAs and no drops in data quality.
28:32 Results and conclusion
We leverage data bricks offerings such as streaming and DTS to modernize our pipelines. We can now focus on gaining value from the data rather than worrying about logistics and resource contention. As a result of the migration, we achieve 30 to 40% costing uh cost savings thanks to better performance and reduce data duplication. We now have the flexibility to scale up on demand to meet urgent SLAs and don't have users stepping on each other's stores with shared compute.
All resulting in happier developers. In the graph, you'll see how our red shift costs started out pretty high and towards the end of this migration, you see the data you'll see that the data bricks costs have evened out to a much lower level than where Redshift was. All resulting in happier managers. Now that we have migrated to the data bricks ecosystem, we're continually benefiting from it. Teams are using Genie to level up their exploratory data analysis and having the databicks assistant at our fingertips has meant faster prototyping and development.
Getting started with Rag and LLM development is very low effort now all within the same ecosystem and having the Unity catalog has made data discovery much easier for new partners. Migrating up our platform to the lakehouse has helped us gain more value from the data we host. We can now share more easily to different teams across HP and help HP make more datadriven decisions. We can scale our platform well and support more users with the same size platform team.
So what's next? We're still working with some partner teams and data products to migrate into the lakehouse. We hope to finalize this by the beginning of the next year and continue reaping the benefits of this ecosystem. Thank you for listening in on our talk today. We would like to give extra extra thanks to Sasha Better, and their team at data bricks for working with us on this migration. We hope you were all able to get some insights into what it takes to carry out a migration like this and we would be happy to answer any questions that you may have.
You can also connect with us via LinkedIn or email. Thank you.
Learn more about the Databricks Data and AI platform.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.