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
The type inferral algorithm tries to cast to available types and each successful type casting increments a popularity score for the successful type cast in question. At the end, the best score so far is returned.
84
+
The inferral algorithm traverses all of the table's rows and attempts to cast every single value of the table.
85
+
86
+
You can infer a schema from
87
+
- a CSV file
88
+
- a URL pointing to a CSV file
89
+
- a CSV containing String
90
+
- a JSON array node
91
+
- a String array containing multiple CSV data sets
92
+
- a File List
93
+
- a URL List
94
+
- mixed data types (CSV, JSON, etc.)
95
+
96
+
If you have more than one CSV file, you can use `infer()` to check that all files have the same schema:
The type inferral algorithm tries to cast to available types and each successful type casting increments a popularity score for the successful type cast in question. At the end, the best score so far is returned.
92
-
The inferral algorithm traverses all of the table's rows and attempts to cast every single value of the table. When dealing with large tables, you might want to limit the number of rows that the inferral algorithm processes:
123
+
When dealing with large tables, you might want to limit the number of rows that the inferral algorithm processes:
93
124
94
125
```java
95
126
// Only process the first 25 rows for type inferral.
0 commit comments