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
/** Creates a function that reads a JSON file from a runtime path and returns a [[JsonIterator]].
322
323
*
323
-
* Unlike other JSON methods that require the file path at compile time, this method allows you to specify the column types at compile time but provide the file path at runtime. This is useful when
324
-
* you know the structure of a JSON file in advance but the actual file location is determined at runtime.
324
+
* Unlike other JSON methods that require the file path at compile time, this method allows you to specify the column types at compile time but provide the file path at runtime.
325
+
* This is useful when you know the structure of a JSON file in advance but the actual file location is determined at runtime.
325
326
*
326
327
* Example:
327
328
* {{{
@@ -345,6 +346,7 @@ object JsonTable:
345
346
// Peek at first object to validate headers match expected
346
347
valbufferedObjects= objects.buffered
347
348
if!bufferedObjects.hasNext thenthrownewIllegalStateException(s"JSON file at ${path.toString} contains no objects")
0 commit comments