title: Can I import a stream table into a partitioned table in dolphindb database?
body: <p>Can I import a stream table into a partitioned table in dolphindb database?</p>
  <p>I create a partitioned table as below:</p>
  <pre><code>login(&quot;admin&quot;, &quot;123456&quot;)
  dbPath=&quot;dfs://thermalDB&quot;
  stream = streamTable(10000:0,`id`ts`tem,[SYMBOL,TIMESTAMP,DOUBLE])
  dbDate = database(, VALUE, 2021.03.17..2031.03.17)
  dbID = database(,  HASH,  [SYMBOL,  50])
  db=database(dbPath, COMPO,  [dbDate,  dbID])
  db.createPartitionedTable(stream, &quot;pt&quot;, `ts`id)
  </code></pre>
  <p>But it returns me an error:</p>
  <pre><code>A stream table does not support direct access. Please use sql query to retrieve data
  </code></pre>
  <p>How does the error occur?</p>