Latest / CyberSecurity Summary / Hands-on Data Virtualization with Polybase: Administer Big Data, SQL Queries and Data Accessibility Across Hadoop, Azure, Spark, Cassandra
Transcript
- 0:00Speaker 1: Okay, let's unpack this. You've given us well, quite a
- 0:03Speaker 1: stack of sources here, all focused on data virtualization, specifically
- 0:07Speaker 1: digging into Microsoft's poll based tool.
- 0:09Speaker 2: That's right, And our mission today really is to cut
- 0:13Speaker 2: through all that complexity for you. We want to show
- 0:15Speaker 2: you how this kind of technology tackles what's probably the
- 0:19Speaker 2: biggest challenge for modern businesses yea analyzing these huge, scattered
- 0:24Speaker 2: data sets.
- 0:25Speaker 1: We're talking big data, IoT streams, data mining stuff. Yeah,
- 0:29Speaker 1: massive amount.
- 0:29Speaker 2: Exactly petabytes of it, and doing it quickly, affordably, and
- 0:33Speaker 2: crucially without making your team learn every single complex system
- 0:37Speaker 2: your company happens to use.
- 0:38Speaker 1: Yeah, it starts with just grappling with the sheer size,
- 0:41Speaker 1: doesn't it. That gravity of big data. You imagine your
- 0:44Speaker 1: data is like a small notebook manageable, right, but then
- 0:47Speaker 1: it explodes. Suddenly it's not a notebook. It's like a
- 0:49Speaker 1: million books scattered everywhere. When you hit petabyte scale, your
- 0:52Speaker 1: normal ways of working just they can't keep up. They
- 0:56Speaker 1: get swamped.
- 0:57Speaker 2: Absolutely, the systems slow down, costs spiral, it's a mess.
- 1:01Speaker 2: The old problem was if you wanted to analyze that
- 1:04Speaker 2: giant library, you literally had to move every single book
- 1:08Speaker 2: onto one enormous table your data warehouse before you could
- 1:11Speaker 2: even start reading, a.
- 1:12Speaker 1: Huge costly effort upfront, totally.
- 1:14Speaker 2: So the whole point of virtualization is to find a
- 1:17Speaker 2: way to analyze these massive, sprawling data sets fast using
- 1:21Speaker 2: sensible resources, without that gigantic data moving phase first.
- 1:26Speaker 1: Okay, so that gets us right to the heart of
- 1:28Speaker 1: data virtualization. It's about solving that movement problem. But maybe
- 1:32Speaker 1: we should quickly touch on why the data is so
- 1:34Speaker 1: scattered to begin with. Yeah, why not just one big
- 1:36Speaker 1: system for everything.
- 1:38Speaker 2: Well, it really boils down to different tools for different jobs.
- 1:40Speaker 2: It's this conflict between say, speed and data integrity. Relational databases,
- 1:46Speaker 2: things like SQL server. They're fantastic for transactional stuff, data
- 1:49Speaker 2: to day business ops.
- 1:50Speaker 1: Updates, deletes, making sure the customer record is accurate precisely.
- 1:54Speaker 2: They guarantee that integrity, but that comes with overhead, especially
- 1:57Speaker 2: when you're just dumping massive amounts of sequential data like logs.
- 2:02Speaker 1: Right for just raw logging or archiving old stuff, you'd
- 2:06Speaker 1: look at file systems, maybe hdfs or cloud storage like
- 2:09Speaker 1: Azure blobs.
- 2:10Speaker 2: Yeah, they give you super fast reads and writes because
- 2:12Speaker 2: they kind of sacrifice that strict integrity and transaction control.
- 2:16Speaker 1: Great for archiving, yeah, terrible for updates. Right.
- 2:19Speaker 2: I think one source mentioned updating a single customer record
- 2:22Speaker 2: and a file system could mean touching hundreds of different pieces, slow,
- 2:27Speaker 2: costly exactly.
- 2:29Speaker 1: So now you've got this split. Your really valuable transactional
- 2:33Speaker 1: data lives in the relational system and this huge bulk
- 2:37Speaker 1: of sequential, maybe less frequently updated data is out in
- 2:41Speaker 1: the file system or the cloud, and you.
- 2:43Speaker 2: Need to join them together for analysis. That's where the
- 2:46Speaker 2: pain starts.
- 2:46Speaker 1: That's where the movement problem really bites. Think about that analogy.
- 2:50Speaker 1: Your source is used computer A and computer B.
- 2:52Speaker 2: Ah. Yes, computer A has the million entries the big archive, and.
- 2:56Speaker 1: Computer B has just one thousand entries, maybe the current
- 2:59Speaker 1: customers from the relational database. Okay, so historically the default
- 3:03Speaker 1: way to join these you'd try to move all one
- 3:06Speaker 1: million entries from A over to B.
- 3:08Speaker 2: Yeah, instantly your network gets hammered. You're trying to ship
- 3:11Speaker 2: potentially petabytes across the wire.
- 3:14Speaker 1: And then poor computer B is struggling to even store
- 3:16Speaker 1: it all, let alone process it.
- 3:18Speaker 2: Exactly, it's CPU memory disc Everything is strained trying to
- 3:23Speaker 2: sift through all this data. You mostly don't even need
- 3:26Speaker 2: just to find maybe ten relevant records. It's just incredibly inefficient.
- 3:30Speaker 1: Slow, expensive duplicates data.
- 3:32Speaker 2: Yeah, great so data visualization and specifically the thinking behind
- 3:36Speaker 2: poly base. It just flips that whole idea on its head. Also,
- 3:40Speaker 2: the smart way, the efficient way, is to move the
- 3:43Speaker 2: small data, those thousand entries from B over to the
- 3:46Speaker 2: large environment on A.
- 3:48Speaker 1: Ah okay, send the query to where the data lives.
- 3:51Speaker 2: Precisely, you push the query logic, the filtering, the joining
- 3:54Speaker 2: down to the system that has the bulk of the
- 3:56Speaker 2: data and the resources to handle it, do the work there,
- 3:59Speaker 2: and then you only bring back the final small relevant
- 4:02Speaker 2: results set to B.
- 4:03Speaker 1: Got it. So no network saguration, no data duplication on
- 4:07Speaker 1: B and you let the heavy duty system do the
- 4:09Speaker 1: heavy lifting.
- 4:09Speaker 2: You got it. It's a fundamental shift in where the
- 4:12Speaker 2: computation happens.
- 4:13Speaker 1: That efficiency game is huge, and that leads us neatly
- 4:19Speaker 1: into polybased itself, because this is where that technical integration
- 4:21Speaker 1: gets really clever. What's the core promise of polybase for
- 4:25Speaker 1: someone using say SQL server.
- 4:28Speaker 2: The promise is really about seamless power through familiarity. That's
- 4:31Speaker 2: the key. Polybase lets you query pretty much any external
- 4:35Speaker 2: data source hdfs, azure blobs, even other databases using the
- 4:39Speaker 2: tool you already know, SQL server and the language you
- 4:42Speaker 2: already know, t sql.
- 4:43Speaker 1: Okay, so I write my standard t SQL query, yep.
- 4:46Speaker 2: But here's the clever bit.
- 4:47Speaker 1: Yep.
- 4:47Speaker 2: While you're writing familiar t sql, Polybase is working behind
- 4:51Speaker 2: the scenes translating that query and leveraging the native capabilities
- 4:54Speaker 2: of that external system, especially things like its parallel processing
- 4:58Speaker 2: power or its optimized story access.
- 5:00Speaker 1: So it's like a universal translator for data queries. You
- 5:03Speaker 1: speak t sql and Polybase figures out how to ask
- 5:06Speaker 1: the question and Hadoop speak or whatever.
- 5:08Speaker 2: That's a great way to put it. Yeah, it handles
- 5:10Speaker 2: that translation and execution.
- 5:11Speaker 1: Now, this wasn't an overnight thing you mentioned. It has
- 5:13Speaker 1: roots in Microsoft's earlier efforts, particularly with Parallel Data Warehouse.
- 5:17Speaker 2: Absolutely essential context. Polybase was officially announced I think it
- 5:20Speaker 2: was November twenty twelve at the Sequel Pass summit, But
- 5:24Speaker 2: the underlying tech, the architecture, it really relied on the
- 5:28Speaker 2: groundwork laid by Parallel Data Warehouse or PDW, which came
- 5:31Speaker 2: out back in twenty ten.
- 5:32Speaker 1: And the sources really emphasize how quickly that PDW tech
- 5:35Speaker 1: evolved PDW version two in twenty thirteen. The performance jump
- 5:41Speaker 1: was apparently staggered.
- 5:42Speaker 2: It was revolutionary. We're talking like one hundred times faster
- 5:46Speaker 2: query performance compared to view one. That's not incremental, that's
- 5:49Speaker 2: a different class of machine.
- 5:50Speaker 1: Wow.
- 5:51Speaker 2: And at the same time they slashed the price per petabite.
- 5:54Speaker 2: It proved that this massively parallel processing or MPP architecture,
- 5:59Speaker 2: which is the foundation for PAUL two, was really the
- 6:01Speaker 2: way forward for handling big data within a relational database context.
- 6:05Speaker 1: And that investment paid off by sql server twenty sixteen.
- 6:08Speaker 1: Polybase wasn't just a PDW thing, It was generally available
- 6:11Speaker 1: in standard sql server editions.
- 6:13Speaker 2: Yeah, that move really cemented it. Microsoft was clearly using
- 6:16Speaker 2: the same core codebase, bringing that big data query power
- 6:18Speaker 2: to its mainstream database product.
- 6:20Speaker 1: Which brings us nicely to the technical secret sauce this
- 6:23Speaker 1: idea of push down computation.
- 6:25Speaker 2: Yes, this is critical to understanding why polybase is so
- 6:28Speaker 2: much better than the older ways.
- 6:30Speaker 1: We touch on the older ways failing, specifically SQL server's
- 6:34Speaker 1: link servers. Can you elaborate on how they fell short
- 6:37Speaker 1: with big data?
- 6:38Speaker 2: Sure, they were let's just say not very optimized for
- 6:43Speaker 2: remote filtering. If you wrote a standard query like select
- 6:46Speaker 2: from my link server ducts give me not table where
- 6:49Speaker 2: filter column ten, the link server wouldn't push that wear
- 6:52Speaker 2: filter column ten part down to the remote system. It
- 6:54Speaker 2: would actually read the entire table from the remote serce
- 6:57Speaker 2: the whole.
- 6:57Speaker 1: Thing, even if it was billions of rows, the whole.
- 6:59Speaker 2: Thing, pulled it all across the network, then applied the
- 7:02Speaker 2: filter locally on your SQL server instace.
- 7:04Speaker 1: Oh my goodness. So if I just wanted ten records,
- 7:07Speaker 1: I might still be pulling gigabytes or terabytes across the network.
- 7:11Speaker 2: First, precisely a guaranteed performance killer for large data sets.
- 7:16Speaker 2: To actually force the filter to run remotely, you had
- 7:19Speaker 2: to jump through hoops using things like open query embedding
- 7:23Speaker 2: your remote query as a string. It was awkward, error prone,
- 7:26Speaker 2: and didn't scale well for complex logic. Right.
- 7:29Speaker 1: That sounds painful. So the magic, as the sources call it,
- 7:33Speaker 1: of predicate push down in polybase. It fixes that.
- 7:37Speaker 2: It fixes exactly that. Polybase enables intelligent pushdown. The query
- 7:41Speaker 2: optimizer looks at your t SQL query and figures out
- 7:44Speaker 2: which parts the filtering predicate is. Maybe some joins, maybe
- 7:47Speaker 2: aggregations can actually be executed on the external data source.
- 7:50Speaker 1: Itself, so it does the work remotely, and then.
- 7:52Speaker 2: It only brings back the much smaller pre filtered, maybe
- 7:55Speaker 2: even pre aggregated results set. You only get the ten
- 7:57Speaker 2: customers you ask for the billion stay put.
- 8:01Speaker 1: That must completely change the game for data warehousing.
- 8:03Speaker 2: Oh massively think about traditional ETL extract, transform load, huge
- 8:08Speaker 2: complex processes, often running for hours overnight just to move
- 8:12Speaker 2: and reshape data before you can even query it.
- 8:15Speaker 1: Right the daily or nightly load window.
- 8:17Speaker 2: Polybase lets you potentially bypass a lot of that heavy lifting.
- 8:20Speaker 2: You don't necessarily need to physically load all the external
- 8:23Speaker 2: data into the warehouse first, you can query it in place.
- 8:26Speaker 2: You focus on the analysis, the queries, the calculations, not
- 8:29Speaker 2: the complex data plumbing all through one connection point in
- 8:33Speaker 2: SQL server and I guess this pushdown benefit is amplified
- 8:37Speaker 2: by parallelism. Definitely polydase, especially when you set up scale
- 8:42Speaker 2: out groups with multiple SQL server nodes, is designed for
- 8:45Speaker 2: parallel data transfer. It can read data from multiple nodes
- 8:48Speaker 2: in a Hadoop cluster or multiple partitions in cloud storage simultaneously.
- 8:52Speaker 1: So it's pulling data in parallel, professing parts of the
- 8:56Speaker 1: query in parallel on the remote system exactly.
- 8:58Speaker 2: That parallel operation capability is a hallmark of those high
- 9:02Speaker 2: end MPP systems, and polybaseed brings that capability to SQL
- 9:05Speaker 2: server interacting with external data.
- 9:07Speaker 1: Fantastic. Okay, let's broaden the view of bit section four
- 9:10Speaker 1: Polybase within the wider modern data ecosystem. Interoperability seems key here, it.
- 9:15Speaker 2: Really is its main strength. It has those native, highly
- 9:18Speaker 2: optimized connectors for the big ones Hadoop, hdfs and Azure
- 9:21Speaker 2: blob storage using the WASB protocol WSB.
- 9:25Speaker 1: That's Windows Azure Storage Blob yep.
- 9:27Speaker 2: The standard way to talk to Azure blobs for a while.
- 9:30Speaker 1: But what about everything else the world isn't just Microsoft
- 9:32Speaker 1: and hadoob. What if you need data from say, Cassandra
- 9:37Speaker 1: or Mango dB, or even other relational systems like mysuquel
- 9:41Speaker 1: or postgres School.
- 9:42Speaker 2: Good question. For many of those other systems, Polybase relies
- 9:46Speaker 2: on ODDC drivers open database connectivity. It's like a standard adapter.
- 9:51Speaker 1: Okay, ODBC. So you can still use.
- 9:53Speaker 2: T sql, Yes, and that's the big win. You still
- 9:55Speaker 2: get to query those diverse sources using familiar t SQL
- 9:58Speaker 2: from within sql server. Huge for developer productivity. And ease
- 10:02Speaker 2: of adoption.
- 10:02Speaker 1: But there's always a butt, isn't there. What's the trade
- 10:04Speaker 1: off with ODBC.
- 10:05Speaker 2: Well, using a generic bridge like ODBC can sometimes introduce
- 10:09Speaker 2: a bit of overhead, and more importantly, it can sometimes
- 10:12Speaker 2: limit those powerful pushdown capabilities we just talked about.
- 10:15Speaker 1: Uh, so the intelligence might not always translate perfectly through
- 10:18Speaker 1: the ODBC layer.
- 10:20Speaker 2: Exactly. One of your sources had a perfect, if slightly
- 10:23Speaker 2: worrying example with mycequel. A simple count aggregation failed to
- 10:28Speaker 2: push down because of some subtle difference in how white
- 10:30Speaker 2: space was handled by the ODBC driver.
- 10:33Speaker 1: Suriously, a count query failed to push down.
- 10:35Speaker 2: Yeah, and the workaround they had to explicitly disable push
- 10:39Speaker 2: down for that query, meaning it fell back to pulling
- 10:42Speaker 2: more data than necessary.
- 10:44Speaker 1: So while ODBC gives you broad connectivity, you might occasionally
- 10:47Speaker 1: lose some of that peak performance or intelligent push down
- 10:50Speaker 1: you get with the native connectors.
- 10:52Speaker 2: That's the trade off essentially. It highlights why systems with
- 10:55Speaker 2: truly native, deeply integrated connections often performed best.
- 10:59Speaker 1: Speaking best performers, the sources bring up Terra data quite
- 11:03Speaker 1: a bit as a kind of gold standard in this
- 11:05Speaker 1: MPP world.
- 11:06Speaker 2: Yeah, Terra data is often seen as the benchmark, especially
- 11:10Speaker 2: for petabyte scale warehousing. Their architecture goes way back nineteen
- 11:13Speaker 2: seventy nine. They really pioneered many of these MPP concepts
- 11:17Speaker 2: like shared nothing architecture, so they've.
- 11:19Speaker 1: Been doing native pushed down in parallel data movement for
- 11:22Speaker 1: decades pretty much.
- 11:24Speaker 2: Their maturity and optimization are their big strengths polybases in
- 11:28Speaker 2: many ways, Bringing those proven MPP concepts refined over years
- 11:32Speaker 2: by systems like Terra Data into the more mainstream SQL
- 11:36Speaker 2: server ecosystem.
- 11:37Speaker 1: Makes sense, and shifting to the cloud polybases vital there too. Right,
- 11:40Speaker 1: Connecting SQL server.
- 11:41Speaker 2: To cloud storage absolutely essential. We mentioned Azure blobs via WASB.
- 11:46Speaker 2: It also supports reading from Azure Data lakes store both
- 11:49Speaker 2: Gen one and Gen two.
- 11:50Speaker 1: Does it use the newer native protocols for ady ls
- 11:53Speaker 1: Gen two Like.
- 11:53Speaker 2: ABFs, often it still relies on the WISP protocol compatibility
- 11:58Speaker 2: layer even for Gen two. Depending on the specific sequel
- 12:01Speaker 2: server or synapse version. The native ABFs support is getting better,
- 12:05Speaker 2: but WASB is often the fallback.
- 12:07Speaker 1: And another key point mentioned was read versus right right now.
- 12:10Speaker 2: Yes, that's an important current limitation to be aware of,
- 12:12Speaker 2: especially in cloud scenarios like Azure, synaps analytics. Polybase is
- 12:17Speaker 2: primarily fantastic for reading data from these external sources hood ADLs, blobs,
- 12:22Speaker 2: but writing data back out to them via Polybase is
- 12:24Speaker 2: often not supported or more limited. It's mainly a consumption
- 12:28Speaker 2: a virtualization tool, not necessarily a two way synchronization engine yet.
- 12:32Speaker 1: Okay, good clarification. So let's tie this all together. Why
- 12:36Speaker 1: should you, our listener, really care about this? What are
- 12:38Speaker 1: the killer real world use cases?
- 12:41Speaker 2: Well, there are two immediate ones that jump out, offering
- 12:43Speaker 2: huge savings and capabilities. First, aging and archiving.
- 12:47Speaker 1: Moving old data out of expensive databases exactly.
- 12:50Speaker 2: Think about old log files, transaction history older than say
- 12:54Speaker 2: five years, data you need to keep for compliance but
- 12:57Speaker 2: don't query often. You can set up part titioning in
- 13:00Speaker 2: sql server to automatically move those old partitions to cheaper
- 13:03Speaker 2: storage hdfs as your data lak. And the beauty is
- 13:07Speaker 2: Polybase makes that archive data still look like it's part
- 13:10Speaker 2: of the original table. Your legacy applications can query it
- 13:13Speaker 2: using the same tseql, no code changes needed, instant cost
- 13:17Speaker 2: savings on primary storage.
- 13:18Speaker 1: That's incredibly practical. Okay, what's the second big one?
- 13:21Speaker 2: The second one is maybe more transformational creating those three
- 13:24Speaker 2: hundred and sixty degree customer views, especially for things like
- 13:26Speaker 2: AI and machine.
- 13:27Speaker 1: Learning, combining different data types.
- 13:29Speaker 2: Right, imagine joining your core customer data from your relational
- 13:33Speaker 2: database names addresses purchase history with massive unstructured or semi
- 13:39Speaker 2: structured data streams. Right, what like web clickstream data, social
- 13:43Speaker 2: media interactions, maybe sensor data from devices, even anonymized location data,
- 13:48Speaker 2: stuff that lives outside your traditional database. Polybase lets you
- 13:52Speaker 2: bring all that disparate data together virtually. You can then
- 13:55Speaker 2: run mL models across that unified view to do really
- 13:58Speaker 2: powerful things customers with incredible accuracy, predict churn, detect fraud,
- 14:04Speaker 2: personalized offers, things you just couldn't do easily when the
- 14:08Speaker 2: data was siloed.
- 14:09Speaker 1: That opens up a lot of possibilities. Yeah, so wrapping
- 14:11Speaker 1: things up, then, what's the big takeaway here?
- 14:13Speaker 2: The big takeaway is that data virtualization, with tools like
- 14:16Speaker 2: Polybase leading the charge in the Microsoft world, fundamentally changes
- 14:19Speaker 2: the role of the relational database.
- 14:21Speaker 1: It's not just a container anymore, exactly.
- 14:24Speaker 2: It becomes more of a central hub and analytical control plane.
- 14:27Speaker 2: By giving you familiar t SQL access to these vast
- 14:30Speaker 2: varied external data sets and using clever tech like predicate
- 14:34Speaker 2: pushdown to do it efficiently. It saves potentially huge amounts
- 14:38Speaker 2: of time and money.
- 14:39Speaker 1: Less complax etl less need for specialized skills for every
- 14:43Speaker 1: single data source.
- 14:44Speaker 2: Precisely, it makes leveraging diverse data much more accessible.
- 14:47Speaker 1: Okay, a powerful shift. So we've seen how polybase makes
- 14:50Speaker 1: reading and linking data from dozens of sources much easier.
- 14:54Speaker 1: It makes dealing with massive static files almost trivial compared
- 14:58Speaker 1: to the old ways.
- 14:58Speaker 2: Yeah, the read side is pre well tackled, but you.
- 15:01Speaker 1: Alluded to the difficulty of updating data in those distributed
- 15:03Speaker 1: file systems earlier, which leaves us with a final thought
- 15:06Speaker 1: few to chew on. If polybase has made reading and
- 15:08Speaker 1: analyzing virtualized data so seamless, how long will it be
- 15:12Speaker 1: until that other major big data headache, the complexity and
- 15:16Speaker 1: cost of ensuring real time consistency and updates across all
- 15:19Speaker 1: these different virtualized sources, is also virtualized away just as elegantly.
- 15:24Speaker 1: When can we update that archive record as easily as
- 15:27Speaker 1: we can query it?
- 15:28Speaker 2: That's the multi billion dollar question, isn't it. How do
- 15:31Speaker 2: you handle distributed transactions and consistency at scale in a
- 15:34Speaker 2: virtualized world. That's the next frontier