Skip to content

Commit 7a0059c

Browse files
juwentus1234facebook-github-bot
authored andcommitted
docs: Update substr usage in Velox developer doc vector section (facebookincubator#12979)
Summary: Pull Request resolved: facebookincubator#12979 As onboarding reading the velox developer document, basing on the context, adding presto `substr(s,2)` {F1976936850} Reviewed By: kKPulla Differential Revision: D72726144 fbshipit-source-id: 2074ba0468be25b048f9a03e0b0ced66128c4441
1 parent e9a2d35 commit 7a0059c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

velox/docs/develop/vectors.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ like substr and split. The results of these functions consist of substrings of
242242
the original strings and therefore can use StringViews which point to the same
243243
string buffers as the input vectors.
244244

245-
A result of applying substr(s, 2) function to a vector shown above looks like
246-
this:
245+
A result of applying `presto substr(s, 2) <https://prestodb.io/docs/current/functions/string.html#substr-string-start-varchar>`_ function to a vector shown above looks
246+
like this:
247247

248248
.. image:: images/substr-result.png
249249
:width: 700
@@ -252,8 +252,8 @@ this:
252252
This vector is using the same string buffer as the original one. It simply
253253
references it using std::shared_ptr. The individual StringView entries either
254254
contain strings inline or refer to positions in the original strings buffer.
255-
After applying substr(s, 2) function a string in position 1 became short enough
256-
to fit inside the StringView, hence, it no longer contains a pointer to a
255+
After applying `presto substr(s, 2) <https://prestodb.io/docs/current/functions/string.html#substr-string-start-varchar>`_ function a string in position 1 became short
256+
enough to fit inside the StringView, hence, it no longer contains a pointer to a
257257
position in the string buffer.
258258

259259
Allowing these zero-copy implementations of functions that simply change the

0 commit comments

Comments
 (0)