Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Returns the start offset of the block being read, or -1 if not available.
Syntax
from pyspark.sql import functions as sf
sf.input_file_block_start()
Examples
Example 1: Get input file block start offset
from pyspark.sql import functions as sf
df = spark.read.text("python/test_support/sql/ages_newlines.csv", lineSep=",")
df.select(sf.input_file_block_start()).show()
+------------------------+
|input_file_block_start()|
+------------------------+
| 0|
| 0|
| 0|
| 0|
| 0|
| 0|
| 0|
| 0|
+------------------------+