Hi folks, it’s me again :smile: What’s the command...
# general
p
Hi folks, it’s me again 😄 What’s the command for deleting rows from Pinot tables?
DELETE from tableName where predicate1
gives me a:
Copy code
org.apache.pinot.sql.parsers.SqlCompilationException: Caught exception while parsing query: DELETE FROM from baseballStats where baseOnBalls=0
Can’t find it in the docs
y
Delete is not supported through query. You can only delete entire segments using the either the Delete all segments API
Copy code
DELETE: /segments​/{tableName}
or Delete a segment API
Copy code
DELETE: /segments/{tableName}/{segmentName}
Let me know if this is helpful.
p
This was helpful. It forgot that a segment is immutable.
Thanks @User