Skip to main content
Silver ⭐️⭐️
Nov 6, 2026 2:13 PM UTC
Solved

Spark Atlas Connector creates lineage only for direct columns, not upper() or concat_ws() in CTAS

We are testing Spark column-level lineage with Apache Atlas in CDP Private Cloud Base 7.1.9.

A successful Spark CTAS operation creates this projection:

CREATE TABLE tdc_spark_ctas_test.customers_expression_test
USING PARQUET
AS
SELECT
customer_id,
first_name AS direct_first_name,
upper(first_name) AS upper_first_name,
concat_ws(' ', first_name, last_name) AS full_name_concat_ws
FROM tdc_spark_ctas_test.customers_raw;

The analyzed logical plan contains all four expressions. Atlas creates the target hive_table and all four hive_column entities, but only two spark_column_lineage entities:


- customer_id -> customer_id
- first_name -> direct_first_name


It creates no spark_column_lineage entity for:


- first_name -> upper_first_name
- first_name + last_name -> full_name_concat_ws


The Spark application finishes successfully. Atlas receives and processes the Spark notifications with failedMessageCount: 0, and no relevant Atlas ingestion error is recorded.

The CDP 7.1.9 Atlas reference documents spark_column_lineage entities and their input/output column relationships. Cloudera documentation also lists Spark CTAS as an operation that produces spark_column_lineage. I could not find documentation stating that expression-based projections are excluded or limited to direct column mappings.

 

Questions:

  • Is expression-based column lineage for functions such as upper() and concat_ws() supported in CDP 7.1.9?
  • Is this a known Spark Atlas Connector defect?
  • Is there a service pack, or later release that adds/fixes this support?
  • Is any additional Spark Atlas Connector configuration required?

 

Environment:

  • CDP Private Cloud Base 7.1.9
  • Source and target: Hive Metastore tables backed by Parquet
vafs
vafsAnswer
Gold ⭐️⭐️⭐️
Nov 9, 2026 5:44 PM UTC

Hi ​@igindin, 

This is an implicit limitation, not documented specifically. 

So far there is no newer release that includes that. 
But I found that there is an internal work created to include it: CDPD-32543
There is no timeline, but you can talk with your account team for deeper follow up and inform the need in your side. 

Regards,
Andrés Fallas
-- Was your question answered?
Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs-up button.

4 replies

vafs
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
Nov 9, 2026 3:45 PM UTC

Hello ​@igindin, 

Thanks for being part of our community. 

As far as I checked, upper() and concat_ws()  are not considered because they are not an AttributeReference or a child, those are Expressions. 
For that reason the Connector does not take it as an entry. 

This is the code, an old one but the base remains the same: https://github.com/hortonworks-spark/spark-atlas-connector/blob/master/spark-atlas-connector/src/main/scala/com/hortonworks/spark/atlas/sql/CommandsHarvester.scala
There we can see how the harvest happens and what is selected to audit. 

Regards,
Andrés Fallas
-- Was your question answered?
Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs-up button.

Translate
igindinAuthor
Silver ⭐️⭐️
Nov 9, 2026 4:34 PM UTC

Thank you, Andrés. This explanation matches our results: direct references and aliases produce column lineage, while upper() and concat_ws() do not.

Could you please confirm:

  1. Is this an implementation limitation in the Spark Atlas Connector shipped with CDP Private Cloud Base 7.1.9, with no configuration option to enable these expression dependencies?
  2. Is there a Cloudera defect/enhancement reference or documentation describing this limitation?

  3. Does any service pack or later release support these mappings?

We need to distinguish a configuration issue from a connector limitation and advise whether an upgrade would help.

Translate