• nikhilesh@helicaltech.com
  • +91-7893947676

Helical IT Solutions Pvt Ltd

One stop destination for all your BI, DW, Big Data needs

MENUMENU
  • Products
    • Helical Insight
    • Ask On Data
  • Services
    • AWS Quicksight Consulting
    • AWS Glue Consulting
    • Jaspersoft Consulting
    • Talend Consulting
    • Pentaho Consulting
    • Tableau Consulting
    • Pentaho Data Integration
    • Big Data Analytics
    • Data Lake Consulting
  • AI & Analytics
    • Generative AI Services
  • Modern Data Stack
    • DBT Services
    • Airflow Services
    • Airbyte Services
    • Databricks Services
    • Snowflake Services
  • Company
        • About Helical IT Solutions Pvt Ltd

          Helical IT Solutions Pvt Ltd, based out of Hyderabad India, is an IT company specializing in Data Warehousing, Business Intelligence and Big Data Analytics Services. Helical IT Solutions Pvt Ltd can help you in providing consultation regarding selecting of correct hardware and software based on your requirement, data warehouse modeling and implementation, big data implementation, data processing using Apache Spark or ETL tool, building data analysis in the form of reports dashboards with other features like data security, alerting and notification etc. Helical IT Solutions Pvt Ltd can use open source tool leading to low cost of ownership or your favorite proprietary tool to build the solution that you are looking for.

          • About
          • Careers
          • Contact
          • Engagement Models
          • Clients
          • Blog
  • Clients
  • Contact
        • Location

          View larger map
          • Helical IT Solutions Pvt Ltd.
            Somajiguda, Hyderabad

          • nitin@helicaltech.com
            nikhilesh@helicaltech.com

          • +91-7893947676

        • Contact Us

      • Search what you are looking for..

    Metadata Injection in Pentaho Data Integration

    Posted on March 28, 2018 by By Sohail, in Business Intelligence, Data Processing, Data Visualization, Databases, ETL, Pentaho, Services | 0

    Metadata Injection in Pentaho Data Integration

    The ETL Metadata Injection step inserts metadata into a template transformation. To Explain further, Let’s have a simple scenario
    of Loading CSV Data into a Table,

    Make data easy with Helical Insight.
    Helical Insight is the world’s best open source business intelligence tool.

    Get your 30 Days Trail Version

    So when using PDI, we use a CSV input and then Statically we get the fields of the CSV and then we connect the CSV input to a Metadata
    now this is ideally the step we follow now imagine we had 10 different CSV files
    that will mean 10 different CSV inputs and 10 different Tables Output, now this is time consuming, Hence Metadata Injection is here to save us by
    passing ETL metadata at run-time. This step enables you to solve repetitive ETL workloads like loading of text files, data migration, and so on.

    Now I will show you how this is done.

    First lets keep in mind that the table we are loading the csv data has already been created. this is a crucial step for us to achieve our goal.

    So we are creating a table as follows:

    CREATE TABLE employees
    (
    id integer NOT NULL,
    name character varying(100),
    date character varying(100),
    departmentid character varying(100)
    )

    Now we need to create a Transformation with a csv input and table output as shown below: fetchcsvandload.ktr

    with values as shown below

    now once that is covered we need to create a Transformation that will have our ETL metadata injection
    and few other components which will all a forward connection to the ETL metadata Injection

    these components are as follows:
    1. Table input and Metadata structure of stream
    now this table input is required to fetch data from the table employees and then pass it through the Metadata structure of stream which catches the metadata of the output row
    and uses that for our injection process.

    Now within our Table input we need to have the following Query so that we can get a row which we will pass through into the next component

    SELECT * FROM (
    SELECT e.* FROM (SELECT 1 as one) dummy
    LEFT JOIN employees e -- employees table can be parametrized In the Scenario where you want to load multiple and different CSV using MetaData Injection
    on 1=1
    )base

    2. Get File Names
    This is required to fetch the file path of the CSV

    Our Transformation now looks something like this

    Make data easy with Helical Insight.
    Helical Insight is the world’s best open source business intelligence tool.

    Claim Your 30 Days Free Trail

    3. Modified JS
    I’m using this component here to fetch the following:
    1. tableName
    2. fileName
    3. delimiter
    4. schemaValue
    as shown in the image below

    4. ETL Metadata Injection
    We give the path of our Transformation which has a csv input and table output: ${Internal.Transformation.Filename.Directory}/fetchcsvandload.ktr
    and then we click on get Validate and Refresh

    then we click on Inject Metadata Tab

    Now you will get all the options from our fetchcsvandload.ktr so we fill it up with the Metadata.


    now from the image above you can see we filled up the values of from the incoming transformations and its values.

    Make data easy with Helical Insight.
    Helical Insight is the world’s best open source business intelligence tool.

    Get your 30 Days Trail Version

    now before we run our file to see how Metadata Injection works here is how our Csv input & Table output looks like:

    logo

    Best Open Source Business Intelligence Software Helical Insight is Here

    logo

    A Business Intelligence Framework


    Thanks
    Sohail Izebhijie

    ETL Metadata Injection with Pentaho Data Integration Get result data from pentaho data integration metadata injection How do you call a procedure in Pentaho Metadata Metadata Injection in Pentaho Data Integration Metadata Injection using Pentaho Metadata Integration PDI pentaho Pentaho Components pentaho data integration pentaho metadata injection -- examples pentaho metadata injection supported steps pentaho xsl transformation example What is ETL metadata injection What is metadata injection in Pentaho What is precision in Pentaho
    0 0 votes
    Article Rating
    Subscribe
    Connect with
    Login
    I allow to create an account
    When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
    DisagreeAgree
    Notify of


    I allow to create an account
    When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
    DisagreeAgree
    0 Comments
    Inline Feedbacks
    View all comments

    You might also like..

    Helical Insight

    Helical IT Solutions Launches Helical Insight 5.2.2 : Focus on Advance Embedded Analytics

    By admin

    24 Dec 2024: Helical IT Solutions is excited to unveil Helical Insight 5.2.2, the latest iteration of its cutting-edge Open Source Business Intelligence (BI) platform. This release reinforces Helical Insight's position as a cost-effective, versatile, and powerful alternative to mainstream...
    • December 26, 2024
    • 0
    Helical Insight 5.2.1

    Helical IT Solutions Launches Helical Insight 5.2.1: Elevating Open Source BI to New Heights

    By admin

    02 Sept 2024 – Helical IT Solutions is thrilled to announce the release of Helical Insight version 5.2.1, the latest upgrade to its Open Source Business Intelligence (BI) platform. This new version delivers a powerful, cost-effective BI solution that is...
    • September 2, 2024
    • 0
    Business Intelligence

    Installation of Firebird db

    By admin

    Steps to install firebird db 1. Go to google and type firebird in search box and then click on first link. License aggrement 2. Click on downloads and then install Firebird latest version(5.0.0). 3. It will navigate to the below...
    • April 30, 2024
    • 0

    Contact Form

      Let’s get started to unravel your best-fit solution.

      ABOUT HELICAL IT SOLUTIONS PVT LTD

      Helical IT Solutions Pvt Ltd specializes in Data Warehousing, Business Intelligence and Big Data Analytics. We offer consultation in selection of correct hardware and software as per requirement, implementation of data warehouse modeling, big data, data processing using Apache Spark or ETL tools and building data analysis in the form of reports and dashboards with supporting features such as data security, alerts and notification, etc.

      Learn More

      Blog

      Helical Blog

        

      Recent Posts

      • Helical IT Solutions Launches Helical Insight 5.2.2 : Focus on Advance Embedded Analytics December 26, 2024
      • Helical IT Solutions Launches Helical Insight 5.2.1: Elevating Open Source BI to New Heights September 2, 2024
      • Installation of Firebird db April 30, 2024

      © 2025 Helical IT Solutions Pvt Ltd

      0
      0Shares
      wpDiscuz
      Join Us