pingcap/tidb

Enable more expressions to be pushdown to TiKV

Open

#26.954 geöffnet am 6. Aug. 2021

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (6.186 Forks)batch import
component/jsonhelp wantedsig/executiontype/enhancement

Repository-Metriken

Stars
 (40.090 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 4h) (346 gemergte PRs in 30 T)

Beschreibung

Enhancement

There are some expressions that has been implemented in TiKV copr but the push down is not enabled. There are two reasons:

  1. The test is insufficient.
  2. The implementation is not compatible with MySQL because the underlying library is different(such as the math library).

For the first situation, we can add more testcase to ensure its correctness. Especially when Projection push down is finished, We can do testing with greater efficiency.

Misc

  • AnyValue
  • InetNtoa
  • InetAton
  • Inet6Ntoa
  • Inet6Aton
  • IsIPv4
  • IsIPv4Compat
  • IsIPv4Mapped
  • IsIPv6
  • BitAnd
  • BitOr
  • BitCount
  • Bin
  • UnHex
  • Sha2
  • Compress
  • Uncompress
  • RandomBytes
  • Password
  • FromBase64

Json

  • JsonDepth
  • JsonReplace
  • JsonKeys
  • JsonQuote

Math

  • abs
  • Pi
  • Sin
  • Asin
  • Cos
  • Acos
  • Tan
  • Atan
  • Atan2
  • Cot

String

  • locate
  • truncate
  • Regexp
  • ord
  • lpad
  • rpad
  • left
  • right
  • insert
  • upper
  • lower
  • makeset
  • substringIndex
  • instr
  • quote
  • octant
  • findInSet
  • CharLength
  • ToBase64
  • repeat

Time

  • WeekOfYear
  • DayOfWeek
  • Week
  • WeekDay
  • ToDays
  • ToSeconds
  • DateDiff
  • NullTimeDiff
  • AddDate
  • MakeDate
  • Hour
  • Minute
  • Second
  • MicroSecond
  • DayName
  • TimestampDiff
  • DateAdd
  • FromUnixTime

Contributor Guide