(
(let $1 (Configure! world (DataSource '"config") '"DqEngine" '"force"))
(let $2 (Configure! $1 (DataSource '"dq" '"$all") '"Attr" '"watermarksmode" '"default"))
(let $3 (Configure! $2 (DataSource '"pq" '"$all") '"Attr" '"consumer" '"test_client"))
(let $4 (DataSink 'result))
(let $5 (DataSource '"pq" '"pq"))
(let $6 (StructType '('"ts" (DataType 'Timestamp))))
(let $7 (PqTopic '"pq" '"local" '"test_topic_input" '('('"PartitionsCount" '"1")) '() $6))
(let $8 '('"SharedReading" '"1"))
(let $9 '('('"Consumer" '"test_client") '('"Endpoint" '"<pq_pq_endpoint>") $8 '('"ReconnectPeriod" '"") '('"Format" '"json_each_row") '('"ReadGroup" '"fqrun") '('"UseSsl" '"1") '('"WatermarksEnable" '"1") '('"WatermarksGranularityUs" '"1000000") '('"WatermarksLateArrivalDelayUs" '"5000000")))
(let $10 (DqPqTopicSource world $7 '('"ts") $9 (SecureParam '"cluster:default_pq") '"" $6 '"B\x1F\n\x1D\x1A\x1B\b\x03\x12\x04\x12\x02ts\x1A\x11\n\x0F\n\x02\b3\x12\t!@KL\x00\x00\x00\x00\x00"))
(let $11 (DqStage '((DqSource $5 $10)) (lambda '($14) (block '(
  (let $15 '('('"format" '"json_each_row") '('"formatSettings" '('('"data.datetime.formatname" '"POSIX") '('"data.timestamp.formatname" '"POSIX"))) '('"settings" '($8))))
  (let $16 (DqSourceWideWrap $14 $5 $6 $15))
  (return (NarrowMap $16 (lambda '($17) (AsStruct '('"ts" $17)))))
))) '('('"_logical_id" '0))))
(let $12 (DqStage '((DqCnUnionAll (TDqOutput $11 '"0"))) (lambda '($18) $18) '('('"_logical_id" '0))))
(let $13 (ResPull! $3 $4 (Key) (DqCnResult (TDqOutput $12 '"0") '()) '('('type) '('autoref)) '"dq"))
(return (Commit! (Commit! $13 $4) (DataSink '"pq" '"pq")))
)
