Hub
Pricing About
ComponentComponent

Spark Lag Column

H
Draft Latest edits on 
Dec 5, 2019 2:33 PM
Drag & drop
Like
Use or download
This component copies column values from preceding rows into the current row in a Spark DataFrame/RDD. The component can be used to - make a copy of the selected column and shift the cells I steps up (I = lag interval) - make L copies of the selected column and shift the cells of each copy I, 2I, 3I, ... L*I steps up (L = lag) Required extensions: KNIME Data Generation (https://hub.knime.com/knime/extensions/org.knime.features.datageneration/latest) KNIME Extension for Apache Spark (https://hub.knime.com/knime/extensions/org.knime.features.bigdata.spark/latest) KNIME Quick Forms (https://hub.knime.com/knime/extensions/org.knime.features.js.quickforms/latest)

Component details

Input ports
  1. Type: Spark Data
    Spark Input data
    Spark DataFrame containing at least the value column and a numeric or timestamp column for sorting purpose.
Output ports
  1. Type: Spark Data
    Lag input table
    Spark DataFrame with input data and additional columns copying the values from preceding rows.

Used extensions & nodes

Created with KNIME Analytics Platform version 4.1.0
  • Go to item
    KNIME CoreTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime
  • Go to item
    KNIME Data GenerationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime
  • Go to item
    KNIME Extension for Apache SparkTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime
  • Go to item
    KNIME Math Expression (JEP)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits