How Can i Consolidate Multiple PRQL Snippets into a Single File? #5113
-
Hello everyone, I'm currently working on translating all my PRQL queries into JSON format and then parsing these JSON files. However, I've encountered an issue where this process results in small fragments of PRQL code being scattered across multiple Is there a way to consolidate many small snippets of PRQL code into the same file so that they can be easily referenced? Any guidance or suggestions on how to achieve this would be greatly appreciated! Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes. You can put multiple variable definitions into same .prql file: # queries.prql
let a = (from x)
let b = (from y)
from z When compiling them to SQL, you have to provide the "path" to the expression you want compiled:
|
Beta Was this translation helpful? Give feedback.
Yes. You can put multiple variable definitions into same .prql file:
When compiling them to SQL, you have to provide the "path" to the expression you want compiled: