(
(let $1 (Configure! world (DataSource '"config") '"DqEngine" '"force"))
(let $2 (Configure! $1 (DataSource '"dq" '"$all") '"Attr" '"maxtasksperstage" '"10"))
(let $3 (Configure! $2 (DataSource '"pq" '"$all") '"Attr" '"consumer" '"test_client"))
(let $4 (DataSource '"pq" '"pq"))
(let $5 '('('"PartitionsCount" '"1")))
(let $6 (StructType '('"Data" (DataType 'String))))
(let $7 (PqTopic '"pq" '"local" '"test_topic_input" $5 '() $6))
(let $8 '('"Data"))
(let $9 '('"Endpoint" '"<pq_pq_endpoint>"))
(let $10 '('"SharedReading" '"1"))
(let $11 '('"UseSsl" '"1"))
(let $12 '('('"Consumer" '"test_client") $9 $10 '('"ReconnectPeriod" '"") '('"Format" '"raw") '('"ReadGroup" '"fqrun") $11))
(let $13 (SecureParam '"cluster:default_pq"))
(let $14 (DqPqTopicSource $3 $7 $8 $12 $13 '"" $6 '""))
(let $15 (lambda '($23) (block '(
  (let $24 '('('"format" '"raw") '('"formatSettings" '('('"data.datetime.formatname" '"POSIX") '('"data.timestamp.formatname" '"POSIX"))) '('"settings" '($10))))
  (let $25 (DqSourceWideWrap $23 $4 $6 $24))
  (return (NarrowMap $25 (lambda '($26) (AsStruct '('"Data" $26)))))
))))
(let $16 (DqStage '((DqSource $4 $14)) $15 '('('"_logical_id" '0))))
(let $17 (PqTopic '"pq" '"local" '"test_topic_input2" $5 '() $6))
(let $18 (DqPqTopicSource $3 $17 $8 $12 $13 '"" $6 '""))
(let $19 (DqStage '((DqSource $4 $18)) $15 '('('"_logical_id" '0))))
(let $20 (DataSink '"pq" '"pq"))
(let $21 (PqTopic '"pq" '"local" '"test_topic_output" $5 '() $6))
(let $22 (DqPqTopicSink $21 '($9 $11) $13))
(return (Commit! (DqQuery! $3 '((DqStage '((DqCnUnionAll (TDqOutput $16 '"0")) (DqCnUnionAll (TDqOutput $19 '"0"))) (lambda '($27 $28) (Extend $27 $28)) '('('"_logical_id" '0)) '((DqSink '"0" $20 $22))))) $20))
)
