PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientnegative/lockneg4.q

#
text | 9 lines | 6 code | 3 blank | 0 comment | 0 complexity | ad34712f8c07d8a3ea8729a9483a6069 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. drop table tstsrcpart;
  2. create table tstsrcpart like srcpart;
  3. insert overwrite table tstsrcpart partition (ds='2008-04-08', hr='11')
  4. select key, value from srcpart where ds='2008-04-08' and hr='11';
  5. LOCK TABLE tstsrcpart PARTITION(ds='2008-04-08', hr='11') EXCLUSIVE;
  6. SHOW LOCKS tstsrcpart PARTITION(ds='2008-04-08', hr='12');