MCPcopy Create free account
hub / github.com/apache/impala / quote

Function quote

testdata/common/widetable.py:78–84  ·  view source on GitHub ↗

Returns a generator that returns quoted values of iter_fn.

(iter_fn)

Source from the content-addressed store, hash-verified

76 i += 1
77
78def quote(iter_fn):
79 """Returns a generator that returns quoted values of iter_fn."""
80 def new_iter_fn():
81 iter = iter_fn()
82 while True:
83 yield "'%s'" % next(iter)
84 return new_iter_fn
85
86def get_data(num_cols, num_rows, delimiter=',', quote_strings=False):
87 """Returns the data for the given number of rows and columns as a list of strings, each

Callers 1

get_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected