Implementing LIKE Operator in ADF

Introduction

SQL WHERE clause we often use LIKE operator with wild card character (% or _). But in ADF we can’t use it directly. 

We can use heard coded LIKE and wildcard character in Control flow Lookup Activity, but we need to automate the process.

Hope it will be interesting.

 

Case Study

We have a Flat file named DeveloperList.txt and a AZURE SQL Table object named [dbo].[WorkCommesta]

 


 

Now we need to search each [DevName] from DeveloperList.txt to our [dbo].[WorkComments].[comments] table using wild card and LIKE operator.

It just likes SQL command:

 

Select * From Workcommensts WHERE comments LIKE '%Joydeep%'

 

Stored Procedure

 


 

ADF Control Flow

 


 

Outer Lookup Activity

 


 

ForEach Activity

 


 

Inner Lookup Activity (Under ForEach)

 


 

Set Variable Activity (Under ForEach)

 


Stored Procedure Activity (Under ForEach)

 

 

 

 

Output

 

 

Hope you like it.


Comments

Popular Posts

Working with Python – Module

Working with Spark – Big Data Hadoop MapReduce