cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

create streaming table using variable file path

dataminion01
New Contributor II
is it possible to use a variable for the file path based on dates?
files are stores in folders in this format yyyy/mm
 
CREATE OR REFRESH STREAMING TABLE test
  AS SELECT * FROM STREAM read_files(
    "/Volumes/.....",
    format => "parquet"
  );
1 REPLY 1

Rishabh-Pandey
Esteemed Contributor

@dataminion01  Yes, it is possible to use a variable or dynamic file path based on dates in some data processing frameworks , but not directly in static SQL DDL statements like CREATE OR REFRESH STREAMING TABLE unless the environment you're working enabled parameter substitution or dynamic SQL execution.

Rishabh Pandey

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now