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
Copy file name to clipboardExpand all lines: docs/userguide_3.0.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -277,6 +277,7 @@ spark.sql("select t1.id,t2.id from spark_catalog.default.t t1 left join tidb_cat
277
277
|`spark.tispark.replica_read.label`| "" | Only select TiKV store match specified labels. Format: label_x=value_x,label_y=value_y |
278
278
|`spark.tispark.replica_read.address_whitelist`| "" | Only select TiKV store with given ip addresses. Split mutil addresses by `,`|
279
279
|`spark.tispark.replica_read.address_blacklist`| "" | Do not select TiKV store with given ip addresses. Split mutil addresses by `,`|
280
+
|`spark.tispark.load_tables`| true | (experimental) Whether load all tables when we reload catalog cache. Disable it may cause table not find in scenarios where the table changes frequently. |
280
281
281
282
### TLS Configuration
282
283
@@ -385,13 +386,15 @@ TiSpark reads the range and hash partition table from TiDB.
385
386
386
387
Currently, TiSpark doesn't support a MySQL/TiDB partition table syntax `select col_name from table_name partition(partition_name)`, but you can still use `where` condition to filter the partitions.
387
388
388
-
TiSpark decides whether to apply partition pruning according to the partition type and the partition expression associated with the table. Currently, TiSpark partially apply partition pruning on range partition.
389
+
TiSpark decides whether to apply partition pruning according to the partition type and the partition expression associated with the table.
390
+
391
+
Currently, TiSpark partially apply partition pruning on range partition.
389
392
390
393
The partition pruning is applied when the partition expression of the range partition is one of the following:
391
394
392
395
+ column expression
393
-
+`YEAR(col)`and its type is datetime/string/date literal that can be parsed as datetime.
394
-
+`TO_DAYS(col)` and its type is datetime/string/date literal that can be parsed as datetime.
396
+
+`YEAR($argument)`where the argument is a column and its type is datetime or string literal
397
+
that can be parsed as datetime.
395
398
396
399
If partition pruning is not applied, TiSpark's reading is equivalent to doing a table scan over all partitions.
0 commit comments