Skip to main content

Posts

import in Python

Python allows you to reuse a code using imports. It can be constant values, general functions, formulas and what not. For instance you are writing a code to implement circle circumference formula, instead of hardcoding PI, Import Maths module from Python Standard Library  . This library has a massive list of facilities on offer. Learn about - ' from '

from in Python

While using Import, you can also import a part of the module. " from"  is used for that purpose. Math module for instance has a lot of features but we are bothered about the 'Floor' functionality. In this case we imported floor directly (in line 17th) from math using they keyword 'from'. Math is not required while calling 'floor' in case you directly imported floor.

ACLs in Azure Data Lake

Access Control Lists(ACLs) in azure are an extremely powerful toolset to provision granular levels of access in Azure Data Lake. Role-Based Access Control (RBAC) is best option to setup broader access levels however with ACLs you can reach the lowest possible grains as low as a file inside a blob container. Think of a scenario where you want to add more than 1 user to a folder inside a blob container and each one of them sees only their data - Possible with ACLs Prerequisites Azure Subscription Storage blob with hierarchical namespace enabled Reader Access on the storage object via RBAC How to setup ACLs in Azure Data Lake Like any other offering, Microsoft has a broad spectrum of tools/ways to setup ACLs, ranging from Azure Portal to writing python code . All the steps involved are available in Microsoft documentation, and in a very descriptive manner, therefore needless to rephrase again in this article. Instead, lets walk through some of the challenges one can c...

Hierarchies in Oracle.

This article explores the functionality and features offered by CONNECT BY clause in Oracle with a hands-on exercise approach. Prerequisite: Oracle 9g or lastest installed, any oracle SQL client. We have used Oracle's sample schema for this article, you can download it too from the link below. Execute this SQL in your oracle client and you should be all set with data and schema. https://download.oracle.com/oll/tutorials/DBXETutorial/html/module2/les02_load_data_sql.htm Let's get started with CONNECT BY clause in Oracle. This is basically an oracle clause to place eligible datasets in a hierarchical fashion. Meaning, usage of this function is generally for creating a new resultant query that will elaborate hierarchical relations in a table. Here is the basic syntax [ START WITH condition ] CONNECT BY [ NOCYCLE ] condition START WITH is an optional keyword that can be used as a starting point for hierarchy. CONNECT BY describes the relationship between a child and parent r...

How to work with XML files in Databricks using Python

This article will walk you through the basic steps of accessing and reading XML files placed at the filestore using python code in the community edition databricks notebook. We will also explore a few important functions available in the Spark XML maven library. Think of this article as a stepping stone in the databricks community edition. Features and functionalities elaborated herein can be scaled at the enterprise level using Enterprise editions of databricks to design reusable file processing frameworks. Requirements We will be using the Spark-XML package from Maven. **Spark 3.0 or above is required on your cluster for working with XML files. This article uses Databricks Community edition, refer to  this  video tutorial from Pragmatic works for getting started with  Databricks Community Edition . Create your first cluster in seconds : The next step is to install the Spark-XML library on your cluster. The cluster needs to be in a running state to install this li...

How to Set up Azure DevOps Organizations

Start by creating your account at  Azure DevOps When you signup and log in for the first time you will get a default organization created and from there on you can customize that default organization or create new organizations per your project needs. An  Organization  can basically be considered a unit to group similar applications/projects in an enterprise. Sales and HR for instance can have two separate Azure DevOps organizations in an Enterprise.  Each organization has its share of free services including Pipelines, repos, and many more. Planing your organization structure is critically important in DevOps and a recommendation by Microsoft. Photo by  Lukas  from  Pexels

How to setup Source control in Azure Data Factory

Step by Step guide  You can either configure source control at the time of ADF deployment or can keep it for later. If you prefer to set up later Check Configure Git later in the Git Configuration tab and proceed. In this blog, we will set it up later. Now let us set up source control in already deployed ADF resource. Navigate to your Data factory UI, click on the drop-down next to the Data Factory icon, and set up a code repository . Let us consider only Azure DevOps Git in this blog. Nest step is to choose the mode of linking your Azure integrated Git with ADF. You can either choose. Select repository or Use repository link Select repository option allows you to provide repository names and Use repository link enables you to use URL link in Project to connect repository for ADF source control.  Picture You need to set up the Azure DevOps project in Azure DevOps Organizations . Without this, you will not get any options in the dropdown shown in the Picture. ! Check...