U-SQL Object Model.

Slides:



Advertisements
Similar presentations
Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
Advertisements

Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
1 Chapter Overview Transferring and Transforming Data Introducing Microsoft Data Transformation Services (DTS) Transferring and Transforming Data with.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Module 2: Using Transact-SQL Querying Tools. Overview SQL Query Analyzer Using the Object Browser Tool in SQL Query Analyzer Using Templates in SQL Query.
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
Overview SQL Server 2008 Overview Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP, MCTS Microsoft Web Development MCP ITIL.
Database Design for DNN Developers Sebastian Leupold.
Microsoft Azure Introduction ISYS 512. Microsoft Azure Microsoft Azure is a cloud.
Functions Lesson 10. Skills Matrix Function A function is a piece of code or routine that accepts parameters and stored as an object in SQL Server. The.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
Chapter 2 CIS Sungchul Hong
Database Technical Session By: Prof. Adarsh Patel.
Dexterity | CONFIDENTIAL 2009 MRO | Analytics | Insights 1 Stored Procedures.
CHAPTER:14 Simple Queries in SQL Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Introduction to SEQUEL. What is SEQUEL? Acronym for Structural English Query Language Acronym for Structural English Query Language Standard language.
SQL/Lesson 4/Slide 1 of 45 Using Subqueries and Managing Databases Objectives In this lesson, you will learn to: *Use subqueries * Use subqueries with.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
5/24/01 Leveraging SQL Server 2000 in ColdFusion Applications December 9, 2003 Chris Lomvardias SRA International
By: Matt Batalon, MCITP  Another form of temporary storage that can be queried or joined against, much like a table variable, temp.
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
Module 4 Designing and Implementing Views. Module Overview Introduction to Views Creating and Managing Views Performance Considerations for Views.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Visual Programing SQL Overview Section 1.
Indexes and Views Unit 7.
Module 11 Authorizing Users to Access Resources. Module Overview Authorizing User Access to Objects Authorizing Users to Execute Code Configuring Permissions.
Slide 1 of 19Session 13 Ver. 1.0 Querying and Managing Data Using SQL Server 2005 In this session, you will learn to: Implement stored procedures Implement.
SQL.. AN OVERVIEW lecture3 1. Overview of SQL 2  Query: allow questions to be asked of the data and display only the information required. It can include.
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
SQL Triggers, Functions & Stored Procedures Programming Operations.
SQL Basics Review Reviewing what we’ve learned so far…….
Views / Session 3/ 1 of 40 Session 3 Module 5: Implementing Views Module 6: Managing Views.
Understanding Core Database Concepts Lesson 1. Objectives.
Introduction to Partitioning in SQL Server
CS4222 Principles of Database System
Managing, Storing, and Executing DTS Packages
Standard/Express edition
Data Virtualization Demoette… Caching – Database – Multi Table
Relational Database Design
Bring Big Data to the masses with U-SQL
9/12/ :12 PM BRK3323 Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platform, and intelligent Michael Rys Principal Program.
A Technical Overview of Microsoft® SQL Server™ 2005 Beta 2
Building Analytics At Scale With USQL and C#
Deploying and Configuring SSIS Packages
Data Virtualization Demoette… DDL Feature
Searching Business Data with MOSS 2007 Enterprise Search
Making your Data Lake smarter with Cognitive Services
The System Catalog Describing the Data Copyright © Curt Hill
07 | Analyzing Big Data with Excel
Searching Business Data with MOSS 2007 Enterprise Search
BR013.
Session #, Speaker Name Indexing Chapter 8 11/19/2018.
Populating a Data Warehouse
Using Table Expressions
Microsoft SQL Server 2014 for Oracle DBAs Module 7
SQL .. An overview lecture3.
Chapter 7 Using SQL in Applications
Contents Preface I Introduction Lesson Objectives I-2
Chapter 7 Using SQL in Applications
Microsoft Azure Managing Users & Resources with Azure Resource Manager
SQL Server 2016 Security Features
SSIS Data Integration Data Warehouse Acceleration
Understanding Core Database Concepts
05 | Processing Big Data with Hive
Improving the Performance of Functions
Designing and Implementing User- Defined Functions
06 | Automating Big Data Processing
Presentation transcript:

U-SQL Object Model

Meta Data Object Model Legend Procedures Table Types ADLA Catalog C# Extractors C# Reducers Database C# Processors C# Fns C# UDTs C# UDAgg C# Applier [1,n] C# Combiners C# Outputters Creden-tials Data Source Schema C# Assemblies [0,n] Ext. tables tables views TVFs Procedures Table Types Legend Statistics Clustered Index Abstract objects User objects MD Name C# Name partitions Contains Refers to Implemented and named by

U-SQL Catalog Naming Discovery Sharing Naming Securing Discovery Default database and schema context: master.dbo Quote identifiers with []: [my table] Stores data in ADL Storage /catalog folder Discovery Visual Studio Server Explorer Azure Data Lake Analytics Portal SDKs and Azure PowerShell commands Sharing Within an Azure Data Lake Analytics account Securing Secured with AAD principals at catalog level (inherited from ADL Storage) Naming Discovery Sharing Securing

DEMO Create shareable data and code

Views and TVFs Views for simple cases CREATE VIEW V AS EXTRACT… CREATE VIEW V AS SELECT … Cannot contain user-defined objects (such as UDFs or UDOs) Will be inlined Table-Valued Functions (TVFs) CREATE FUNCTION F (@arg string = "default") RETURNS @res [TABLE ( … )] AS BEGIN … @res = … END; Provides parameterization One or more results Can contain multiple statements Can contain user-code (needs assembly reference) Will always be inlined Infers schema or checks against specified return schema Views for simple cases TVFs for parameterization and most cases

Procedures Allows encapsulation of non-DDL scripts CREATE PROCEDURE P (@arg string = "default“) AS BEGIN …; OUTPUT @res TO …; INSERT INTO T …; END; Provides parameterization No result but writes into file or table Can contain multiple statements Can contain user code (needs assembly reference) Will always be inlined Cannot contain DDL (no CREATE, DROP) Allows encapsulation of non-DDL scripts

Table types Enables you to name a table schema Provides reuse for function/procedure definitions CREATE TYPE T AS TABLE(c1 string, c2 int ); CREATE FUNCTION F (@table_arg T) RETURNS @res T AS BEGIN … @res = … END;

Tables CREATE TABLE CREATE TABLE AS SELECT CREATE TABLE T (col1 int , col2 string , col3 SQL.MAP<string,string> , INDEX idx CLUSTERED (col1 ASC) PARTITIONED BY HASH (driver_id) ); Structured Data Built-in Data types only (no UDTs) Clustered index (must be specified): row-oriented Fine-grained partitioning (must be specified): HASH, DIRECT HASH, RANGE, ROUND ROBIN CREATE TABLE T (INDEX idx CLUSTERED …) AS SELECT …; CREATE TABLE T (INDEX idx CLUSTERED …) AS EXTRACT…; CREATE TABLE T (INDEX idx CLUSTERED …) AS myTVF(DEFAULT); Infer the schema from the query Still requires index and partitioning CREATE TABLE CREATE TABLE AS SELECT

http://aka.ms/AzureDataLake