Commit d9cc01f 1 parent 4ec3ab8 commit d9cc01f Copy full SHA for d9cc01f
File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -117,18 +117,15 @@ def get_specification(params: SpecificationsParams):
117
117
118
118
sql_count = f"""
119
119
SELECT COUNT(*) FROM (
120
- SELECT unnest(CAST(json AS VARCHAR[])) AS value
121
- FROM '{ s3_uri } '
122
- ) AS parsed_json { where_clause }
120
+ SELECT unnest(CAST(json AS VARCHAR[])) AS value
121
+ FROM '{ s3_uri } ') AS parsed_json { where_clause }
123
122
LIMIT ? OFFSET ?
124
123
"""
125
124
126
125
sql_results = f"""
127
126
SELECT value AS json FROM (
128
- SELECT unnest(CAST(json AS VARCHAR[])) AS value
129
- FROM '{ s3_uri } '
130
- ) AS parsed_json
131
- { where_clause }
127
+ SELECT unnest(CAST(json AS VARCHAR[])) AS value
128
+ FROM '{ s3_uri } ') AS parsed_json { where_clause }
132
129
LIMIT ? OFFSET ?
133
130
"""
134
131
You can’t perform that action at this time.
0 commit comments