In order to solve the show() error caused by empty data, it is used during filtering! x. Isnullat (1) determines whether it is empty. If it is empty, it will be discarded
//Filter .getDouble(1) 1 refers to the first column, starting from 0
DF.filter(x => !x.isNullAt(1) && x.getDouble(1) < 1995).show(10)
Read More:
- Solution of socket write error caused by pressing F5 to refresh page by ehcache user
- Caused by: java.net.SocketException: Software caused connection abort: socket write error
- ValueError: Negative dimension size caused by subtracting 2 from 1 for…
- How to Solve canal & MYSQL or “Kafka cannot consume data” Error
- How to Solve Docker Run Error: standard_init_linux.go:219: exec user process caused: exec format error
- [Fixed] Typeerror: error 1009: Cannot access properties or methods referenced by an empty object
- How to Solve Excel Error Log 1: Data format error
- AS: How to Fix “XML tag has empty body” Error
- Kettle Error Caused by: java.lang.ArrayIndexOutOfBoundsException
- How to Solve Docker Error: elasticsearch exception: type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
- [Solved] hive Caused by: MetaException(message:Version information not found in metastore. )
- [Solved] sqoop Error: jSQLException in nextKeyValue Caused by: ORA-24920:column size too large for client
- [Solved] Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
- [Solved] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no furthe
- [Solved] Android mediaplayer.prepare() Error: Caused by: java.lang.IllegalStateException
- The problem of error reporting caused by fluent swift
- [Solved] Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.common.typeinfo.TypeInformation
- How to Solve Starrocks Various Error
- How to Sovle expdp/impdp Data Pump Error
- How to Solve LeetCode Error: AddressSanitizer:DEADLYSIGNAL