Skip to content

Commit

Permalink
Tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jzebedee committed Apr 14, 2023
1 parent 9287430 commit e285e81
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions populate-processing-time-template.sql
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
WITH args1 AS (
SELECT
filename,
substr(filename, length('response-processing-time_')+1) AS no_prefix
FROM (SELECT '%s' AS filename)
SELECT
filename,
substr(filename, length('response-processing-time_')+1) AS no_prefix
FROM (SELECT '%s' AS filename)
), args2 AS (
SELECT
*,
substr(no_prefix, 1, length(no_prefix)-5) AS no_ext
FROM args1
SELECT
*,
substr(no_prefix, 1, length(no_prefix)-5) AS no_ext
FROM args1
), args3 AS (
SELECT
*,
substr(no_ext, 1, instr(no_ext, '_')-1) AS form_name,
substr(no_ext, instr(no_ext, '_')+1, 3) AS office_code,
substr(no_ext, instr(no_ext, '_')+5) AS form_subtype
FROM args2
SELECT
*,
substr(no_ext, 1, instr(no_ext, '_')-1) AS form_name,
substr(no_ext, instr(no_ext, '_')+1, 3) AS office_code,
substr(no_ext, instr(no_ext, '_')+5) AS form_subtype
FROM args2
), json_doc AS (
SELECT
json(readfile(filename)) AS doc,
Expand Down

0 comments on commit e285e81

Please sign in to comment.