Target ( TGT) posted quarterly earnings and sales that rose from a year ago, and the discount retailer said it still expects to meet analysts' expectations for the full year.

The company reported second-quarter earnings of $344 million, or 38 cents a share, up from $271 million, or 30 cents a share, in the same period last year. On average, analysts polled by First Call were expecting a profit of 37 cents.

Total revenue increased 12.6% to $10.07 billion from $8.94 billion last year, driven by a 16.2% revenue increase at the company's namesake stores. Second-quarter same-store sales, which measures revenue from stores open more than a year, rose 3%.

Target indicated that third-quarter analysts' estimates ultimately might prove to be too optimistic, but the company didn't change its guidance. The company said it remains comfortable with the consensus earnings estimate of $1.83 a share for the full year.

Separately, Target said CEO Bob Ulrich and CFO Doug Scovanner plan to sign and file the certifications required by the Securities and Exchange Commission following their review with the company's audit committee and board of directors. The filing is due in conjunction with the company's second-quarter 10-Q filing, on or before Sept. 17.

Shares of Target were recently up 5% to $33.82. The broader sector was also stronger, with the Dow Jones U.S. Retail Index adding 3.3%.