2

If I have a DLT pipeline that creates a streaming live table called customers, how can I use that table in another pipeline?

So,

  • Pipeline A:
CREATE OR REFRESH STREAMING LIVE TABLE customers AS 
  • Pipeline B:
CREATE OR REFRESH STREAMING LIVE TABLE sales AS
                  SELECT * FROM source a
                  INNER JOIN STREAM(LIVE.customers)

That does not work since it says it does not have access to the customers dataset.

Thanks in advance for the help.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
AndyMN
  • 41
  • 2

1 Answers1

0

The LIVE keyword could be used only for references inside the same pipeline (doc). To refer a table from another pipeline you need to use it's full name as database.name.

For production usage it's better to define the name of the table as a configuration parameter (because database names could be different) - then you should be able to refer to it using the ${conf_name} syntax.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132