"We have discarded conventional wisdom in favor of our own," CEO Karp said of Palantir's best-ever quarter.

Palantir's second-quarter earnings beat expectations, and the AI software company lifted revenue guidance.

Palantir stock rose amid June quarter sales that accelerated for the 12th straight quarter while U.S. commercial growth rebounded.