You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 12 |`gaggle_json_each(json VARCHAR)`|`VARCHAR`| Expands a JSON object into newline-delimited JSON rows with fields: `key`, `value`, `type`, `path`. Users normally shouldn't use this function. |
19
19
| 13 |`gaggle_file_path(dataset_path VARCHAR, filename VARCHAR)`|`VARCHAR`| Resolves a specific file's local path inside a downloaded dataset. |
20
-
| 14 |`gaggle_ls(dataset_path VARCHAR)`|`TABLE(name VARCHAR, size BIGINT, path VARCHAR)`| Lists files (non-recursively) in the dataset's local directory; `size` is in MB. |
20
+
| 14 |`gaggle_ls(dataset_path VARCHAR[, recursive BOOLEAN])`|`TABLE(name VARCHAR, size BIGINT, path VARCHAR)`| Lists files in the dataset's local directory; non-recursive by default. When `recursive=true` will walk subdirectories. `path` values are returned as `owner/dataset/<relative-path>` (not an absolute filesystem path); `size` is in MB.|
21
21
22
22
> [!NOTE]
23
23
> * The `gaggle_file_path` function will retrieve and cache the file if it is not already downloaded; set
@@ -65,14 +65,22 @@ select gaggle_info('uciml/iris') as dataset_metadata;
65
65
#### Reading Data
66
66
67
67
```sql
68
-
-- List files as a table
68
+
-- List files as a table (non-recursive)
69
69
select*
70
70
from gaggle_ls('uciml/iris') limit5;
71
71
72
+
-- List files as a table (recursive)
73
+
select*
74
+
from gaggle_ls('suganthidevasagayam/social-media-post-of-postpartum-depression', true) limit10;
0 commit comments